Declaration
function Allocate(ImageWidth, ImageHeight: integer; ImagePixelFormat: TIEPixelFormat=ie24RGB): boolean; overload;
function Allocate(ImageWidth, ImageHeight: integer; FillColor: TColor; Alpha: Integer = 255): boolean; overload;
Description
Prepares space for an image with ImageWidth and ImageHeight sizes.
Second overload creates an ie24RGB image, fills with the specified color and sets the alpha (from 0: Fully Transparent - 255: Fully Opaque)
Returns
true on success.
// Create a 1000x1000 CMYK bitmap
ImageEnView1.IEBitmap.Allocate( 1000, 1000, ieCMYK );
// Create bitmap with red background
ImageEnView1.IEBitmap.Allocate( 250, 250, clRed );
// Create fully transparent bitmap
ImageEnView1.IEBitmap.Allocate( 250, 250, clWhite, 0 );