Description | Hierarchy | Fields | Methods | Properties |
type TAdBitmap = class(TAd2dBitmap)
TAdBitmap is the main bitmap class
constructor Create; |
|
destructor Destroy; override; |
|
procedure Assign(AGraphic:TObject); |
|
procedure AssignAlphaChannel(AGraphic:TObject); |
|
procedure AssignTo(AGraphic:TObject); |
|
procedure AssignAlphaChannelTo(AGraphic:TObject); |
|
procedure LoadFromStream(AStream:TStream); |
|
procedure SaveToStream(AStream:TStream); |
|
procedure LoadFromFile(AFile:string); |
|
procedure SaveToFile(AFile:string); |
|
procedure LoadGraphicFromFile(AFile:string; ATransparent:Boolean=true; ATransparentColor:LongInt=0); |
|
procedure DrawBitmap(AX, AY: integer; ABmp: TAd2dBitmap; AUseAlpha: boolean = true); |
property Compressor: TAdGraphicCompressorClass read FCompressorClass write FCompressorClass; |
|
property OnProgress: TAdGraphicProgress read FProgress write FProgress; |
constructor Create; |
|
This constructor creates an instance of TAdBitmap. |
destructor Destroy; override; |
|
This destructor destroys the instance of TAdBitmap and frees the used memory. |
procedure LoadFromFile(AFile:string); |
|
This procedure tries to load the bitmap data using LoadFromStream and a memory stream from a file. |
procedure SaveToFile(AFile:string); |
|
This procedure saves the bitmap data using "SaveToStream" and a memory stream in a file. |
procedure DrawBitmap(AX, AY: integer; ABmp: TAd2dBitmap; AUseAlpha: boolean = true); |
|
Draws another bitmap to the specified position. |
property Compressor: TAdGraphicCompressorClass read FCompressorClass write FCompressorClass; |
|
Set the compressor class you want to use to compress the bitmap data here. If "Compressor" is nil, the bitmap will store the RAW bitmap data. |
property OnProgress: TAdGraphicProgress read FProgress write FProgress; |
|
This event notifies about the bitmaps decoding/encoding progress. |