RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Graphics.GetDIBSizes Function

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

Pascal
procedure GetDIBSizes(Bitmap: HBITMAP; var InfoHeaderSize: DWORD; var ImageSize: DWORD);
C++
GetDIBSizes(HBITMAP Bitmap, DWORD InfoHeaderSize, DWORD ImageSize);

Graphics

Call GetDIBSizes to determine the amount of memory needed to convert a device dependent bitmap into a device independent bitmap (DIB). Pass the handle to a device dependent bitmap as the Bitmap parameter. GetDIBSizes returns the sizes of the info header and image of the corresponding DIB as the InfoHeaderSize parameter and the ImageSize parameter, respectively.  

Call GetDIBSizes to determine the amount of memory that must be allocated before calling GetDIB to convert a device dependent bitmap into a device independent bitmap. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!