Class TGraphic
Unit
Declaration
type TGraphic = class(TPersistent)
Description
A class containing any element that can be drawn within rectangular bounds
Hierarchy
- TGraphic
Overview
Methods
![]() |
constructor Create; virtual; |
![]() |
class function GetFileExtensions: string; virtual; |
![]() |
function GetEmpty: Boolean; virtual; abstract; |
![]() |
function GetHeight: Integer; virtual; abstract; |
![]() |
function GetMimeType: string; virtual; |
![]() |
function GetTransparent: Boolean; virtual; abstract; |
![]() |
function GetWidth: Integer; virtual; abstract; |
![]() |
procedure Clear; virtual; |
![]() |
procedure LoadFromFile(const Filename: string); virtual; |
![]() |
procedure LoadFromStream(Stream: TStream); virtual; abstract; |
![]() |
procedure SaveToFile(const Filename: string); virtual; |
![]() |
procedure SaveToStream(Stream: TStream); virtual; abstract; |
![]() |
procedure Changed(Sender: TObject); virtual; |
![]() |
procedure Draw(ACanvas: TCanvas; const Rect: TRect); virtual; abstract; |
![]() |
procedure SetHeight(Value: Integer); virtual; abstract; |
![]() |
procedure SetTransparent(Value: Boolean); virtual; abstract; |
![]() |
procedure SetWidth(Value: Integer); virtual; abstract; |
Properties
![]() |
property Empty: Boolean read GetEmpty; |
![]() |
property Height: Integer read GetHeight write SetHeight; |
![]() |
property Transparent: Boolean read GetTransparent write SetTransparent; |
![]() |
property Width: Integer read GetWidth write SetWidth; |
Description
Methods
![]() |
constructor Create; virtual; |
|
| |
![]() |
class function GetFileExtensions: string; virtual; |
|
Returns the list of possible file extensions | |
![]() |
function GetEmpty: Boolean; virtual; abstract; |
|
Check whether it is empty | |
![]() |
function GetHeight: Integer; virtual; abstract; |
|
Retrieves height | |
![]() |
function GetMimeType: string; virtual; |
|
Get mimetype of current graphic class | |
![]() |
function GetTransparent: Boolean; virtual; abstract; |
|
Retrieves whether transparent | |
![]() |
function GetWidth: Integer; virtual; abstract; |
|
Retrieves width | |
![]() |
procedure Clear; virtual; |
|
Clears the content | |
![]() |
procedure LoadFromFile(const Filename: string); virtual; |
|
Load the content from a given file | |
![]() |
procedure LoadFromStream(Stream: TStream); virtual; abstract; |
|
Load the content from a given stream | |
![]() |
procedure SaveToFile(const Filename: string); virtual; |
|
Saves the content to a file | |
![]() |
procedure SaveToStream(Stream: TStream); virtual; abstract; |
|
Saves the content into a given stream | |
![]() |
procedure Changed(Sender: TObject); virtual; |
|
Notify a change | |
![]() |
procedure Draw(ACanvas: TCanvas; const Rect: TRect); virtual; abstract; |
|
| |
![]() |
procedure SetHeight(Value: Integer); virtual; abstract; |
|
Sets the height | |
![]() |
procedure SetTransparent(Value: Boolean); virtual; abstract; |
|
Sets whether to render as transparent | |
![]() |
procedure SetWidth(Value: Integer); virtual; abstract; |
|
Sets the widith | |
Properties
![]() |
property Empty: Boolean read GetEmpty; |
|
Returns if the content is completely | |
![]() |
property Height: Integer read GetHeight write SetHeight; |
|
Returns the | |
![]() |
property Transparent: Boolean read GetTransparent write SetTransparent; |
|
Gets or sets if it is drawn with transparency | |
![]() |
property Width: Integer read GetWidth write SetWidth; |
|
Returns the | |

