Skip to main content

Create(TRect,Boolean) Constructor

Creates a new memory buffer for DIB images.

Declaration

constructor Create(const R: TRect; AClear: Boolean = False); overload;

Parameters

Name Type
R TRect
AClear Boolean

Remarks

Call either of the overloaded constructor variants to create a memory DC or GDI+ API-based buffer for DIB images. The constructor creates a pixel data array of the specified size and an associated GDI resource. Pass True as the AClear optional parameter to fill the pixel data array with zeros.

The first overloaded variant accepts the buffer pixel dimensions as the AWidth and AHeight parameters, while the second variant calculates dimensions from a specified area (R).

See Also