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

TdxGpFastDIB Class

A GDI+ API-based memory buffer for DIB images.

#Declaration

Delphi
TdxGpFastDIB = class(
    TdxCustomFastDIB
)

#Remarks

This memory buffer is a lightweight container for 32-bit DIB (device-independent bitmap) images, designed to work with GDI+ draw routines and bitmap draw routines implemented in DevExpress canvas classes. The buffer associates a handle to a GDI image with image dimensions and an array of pixel data.

The TdxGpFastDIB class has the following members that allow you to:

  • Create an image buffer (Create).

  • Access a GDI handle to the stored bitmap to perform draw operations (Handle).

  • Identify if the buffer has zero size (Empty).

  • Obtain the image buffer’s dimensions and client area for draw operations (Width, Height, and ClientRect).

  • Make all stored pixels opaque (MakeOpaque).

  • Access the stored image’s array of pixels (Bits).

  • Draw the buffer’s content on a new GDI+ canvas layer (CreateCanvas).

  • Clear the image buffer (Clear).

  • Recreate the buffer with the specified dimensions (Resize).

The TcxCustomCanvas.DrawBitmap procedure accepts a TdxGpFastDIB class instance as a bitmap source.

#Inheritance

See Also