Description | Hierarchy | Fields | Methods | Properties |
type TAd2DBitmap = class(TAd2DCustomBitmap)
TAd2dBitmap is used to transfer bitmap data between the host and the plugin dlls. TAd2dBitmap is only depended on AdTypes.pas. It does not contain any read/write functions for streams or files. You can use the scanline or the fast pixel property to manipulate the picture.
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
procedure ReserveMemory(AWidth, AHeight:integer); |
![]() |
procedure Clear; |
![]() |
procedure ClearAlphaChannel; |
![]() |
function ScanLine(AY:integer):Pointer; overload; |
![]() |
function ScanLine:Pointer; overload; |
![]() |
function Loaded:boolean; |
![]() |
property Pixels[X, Y:integer]: TAndorraColor read GetPixel write SetPixel; |
![]() |
constructor Create; |
Creates a instance of TAd2dBitmap and initializes all used variables. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAd2dBitmap and frees used memory. |
![]() |
procedure ClearAlphaChannel; |
This procedure resets the alpha channel of the bitmap to 255. |
![]() |
function ScanLine(AY:integer):Pointer; overload; |
Returns the pointer to the beginning of a pixel line. |
![]() |
function ScanLine:Pointer; overload; |
Returns the pointer to the first pixel. All pixels are written from top-left to bottom-right. The pixels are stored a TRGBARec. |
![]() |
function Loaded:boolean; |
Returns wether memory for the bitmap is reserved. |
![]() |
property Pixels[X, Y:integer]: TAndorraColor read GetPixel write SetPixel; |
Use the pixels property to gain easy access to each pixel of the bitmap. |