Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Create(TRect,Boolean) Constructor

Creates a new memory buffer for DIB images.

#Declaration

Delphi
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