Skip to main content

TdxFastDIB Class

A memory DC-based buffer for DIB images.

Declaration

TdxFastDIB = 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 methods implemented in DevExpress canvas classes. The buffer associates a memory device context with image dimensions and a pixel data array.

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

  • Create an image buffer (Create).

  • Access a memory device context that contains the image to perform draw operations (DC).

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

  • Obtain the image buffer’s dimensions and client rect (Width, Height, and ClientRect).

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

  • Clear the image buffer (Clear).

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

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

Inheritance

See Also