Vcl.Imaging.GIFImg.InternalGetDIB
Delphi
function InternalGetDIB(Bitmap: HBITMAP; Palette: HPALETTE; var BitmapInfo; var Bits; PixelFormat: TPixelFormat): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall InternalGetDIB(HBITMAP Bitmap, HPALETTE Palette, void *BitmapInfo, void *Bits, Vcl::Graphics::TPixelFormat PixelFormat);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | Vcl.Imaging.GIFImg |
Description
Converts a bitmap to a DIB of a specified pixel format.
Call InternalGetDIB to convert a bitmap to a DIB of a specified pixel format. InternalGetDIB returns True if the conversion is successful and False otherwise.
The parameters of InternalGetDIB are listed in the following table, together with their meanings.
Parameter | Meaning |
---|---|
Bitmap |
The handle of the source bitmap. |
Pal |
The handle of the source palette. |
BitmapInfo |
The buffer that will receive the DIB's TBitmapInfo structure. A buffer of sufficient size must be allocated prior to calling this function. |
Bits |
The buffer that will receive the DIB's pixel data. A buffer of sufficient size must be allocated prior to calling this function. |
PixelFormat |
The pixel format of the destination DIB. |
The InternalGetDIBSizes function can be used to calculate the necessary sizes of the BitmapInfo and Bits buffers.