Description | Hierarchy | Fields | Methods | Properties |
type TAdGraphicFormat = class(TAdPersistent)
The abstract TAdGraphicFormat class should be used to load various graphic classes into a TAdBitmap.
class procedure FileExts(strs:TStrings); virtual; abstract; |
|
class function SupportsObject(AObj:TObject):boolean; virtual; abstract; |
|
function LoadFromFile(ABitmap:TAdBitmap; AFile:string; ATransparent:Boolean; ATransparentColor:LongInt):boolean; virtual; abstract; |
|
function Assign(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract; |
|
function AssignTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract; |
|
function AssignAlphaChannel(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract; |
|
function AssignAlphaChannelTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract; |
class procedure FileExts(strs:TStrings); virtual; abstract; |
|
This class procedure writes all file extensions the format can load into a string list. All extensions have to be written in lower case. |
class function SupportsObject(AObj:TObject):boolean; virtual; abstract; |
|
This class function should return true if the loader can handle the object specified by "AObj". |
function LoadFromFile(ABitmap:TAdBitmap; AFile:string; ATransparent:Boolean; ATransparentColor:LongInt):boolean; virtual; abstract; |
|
This abstract function should be used to load a file (wich has a file extension specified by the FileExts procedute) into the bitmap data. |
function Assign(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract; |
|
This function should be used to copy the graphics data of the specified object as good as possible into the TAdBitmap. |
function AssignTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; reintroduce; virtual; abstract; |
|
This function should be used to copy the bitmap data of the specified object as good as possible into the specified graphic object. |
function AssignAlphaChannel(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract; |
|
This function should be used to copy the alpha channel of the specified object into the TAdBitmap. If the specified graphic does not contain an alphachannel, a RGB mixture value should be used. |
function AssignAlphaChannelTo(ABitmap:TAdBitmap; AGraphic:TObject):boolean; virtual; abstract; |
|
This function should be used to copy the bitmaps alpha channel into the specified graphic object. If the graphic object isn't able to handle alpha channels, the alpha channel sould be copied as a mixture of RGB values into the graphic. |