Show: Delphi C++
Display Preferences


From XE2 API Documentation
Jump to: navigation, search


function GetDIB(Bitmap: HBITMAP; Palette: HPALETTE; var BitmapInfo; var Bits): Boolean;


extern PACKAGE bool __fastcall GetDIB(HBITMAP Bitmap, HPALETTE Palette, void *BitmapInfo, void *Bits);


Type Visibility Source Unit Parent
function public
Vcl.Graphics Vcl.Graphics


Returns the info header and image for a device independent bitmap.

Call GetDIB to convert a device dependent bitmap into a device independent bitmap (DIB). Pass the handle to a device dependent bitmap and a handle to its palette as the Bitmap and Palette parameters. GetDIB fills in the BitmapInfo and Bits parameters with the info header and image of the corresponding DIB. GetDIB returns true if the bitmap was successfully converted into a DIB, false otherwise.

Before calling GetDIB, the memory for the info header and image must be allocated. Call GetDIBSizes to determine the amount of memory that must be allocated for the info header and image.

See Also

Personal tools
Previous Versions