Description | Hierarchy | Fields | Methods | Properties |
type TAdResourceImage = class(TObject)
A simple image, which may be stored in components.
![]() |
constructor Create(AParent:TAdDraw); |
![]() |
destructor Destroy; override; |
![]() |
procedure LoadFromFile(AFile:string;ATransparent:boolean;ATransparentColor:LongInt); |
![]() |
procedure LoadFromGraphic(AGraphic:TGraphic); |
![]() |
procedure Draw(X,Y:integer); |
![]() |
procedure LoadFromString(AString: String); |
![]() |
function SaveToString: String; |
![]() |
procedure LoadFromStream(AStream:TStream); |
![]() |
procedure SaveToStream(AStream:TStream); |
![]() |
property Picture: TAdImage read FImage; |
![]() |
property Transparent: boolean read FTransparent write SetTransparent; |
![]() |
property TransparentColor: TColor read FTransparentColor write SetTransparentColor; |
![]() |
property Parent: TAdDraw read FParent; |
![]() |
property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor; |
![]() |
property Loaded: boolean read GetLoaded; |
![]() |
constructor Create(AParent:TAdDraw); |
Creates an instance of TAdResourceImage. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdResourceImage. |
![]() |
procedure LoadFromFile(AFile:string;ATransparent:boolean;ATransparentColor:LongInt); |
Loads the image from the specified file. |
![]() |
procedure LoadFromGraphic(AGraphic:TGraphic); |
Loads the image from the specified graphic. |
![]() |
procedure Draw(X,Y:integer); |
Draws the image somewhere on the screen |
![]() |
procedure LoadFromString(AString: String); |
Loads the picture data from a string |
![]() |
function SaveToString: String; |
Saves the picture data to a string |
![]() |
procedure LoadFromStream(AStream:TStream); |
Loads the picture data from a stream. |
![]() |
procedure SaveToStream(AStream:TStream); |
Saves the picture data to a stream. |
![]() |
property Picture: TAdImage read FImage; |
Link to the internal used TAdImage |
![]() |
property Transparent: boolean read FTransparent write SetTransparent; |
Toggles whether the transparent color is used. |
![]() |
property TransparentColor: TColor read FTransparentColor write SetTransparentColor; |
Set the transparent color here. Transparent will automaticly set to "true" when using it. |
![]() |
property Parent: TAdDraw read FParent; |
Link to the parent TAdDraw. |
![]() |
property Compressor: TAdGraphicCompressorClass read FCompressor write SetCompressor; |
The compressor which should be used to compress the picture. |
![]() |
property Loaded: boolean read GetLoaded; |
Returns whether the picture is loaded. |