Skip to main content

TdxGpFastDIB Class

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

Declaration

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