TWidgetSet.GetDIBits function
Fills a buffer with bitmap color bits.
Declaration
function GetDIBits(DC: HDC; Bitmap: HBitmap; StartScan: UINT;
NumScans: UINT; Bits: Pointer;
var BitInfo: BitmapInfo; Usage: UINT): Integer
; virtualDescription
The bitmap must be a compatible (device dependent) bitmap, for the given device context. It should not be selected into any DC.
The color bits are copied into the Bits array in Device Independent Bitmap (DIB) format.
When Bits is Nil, the BitInfo record receives the bitmap information, from which the required size of the Bits array can be determined.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
