Show: Delphi C++
Display Preferences

Vcl.Graphics.GetDIBSizes

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure GetDIBSizes(Bitmap: HBITMAP; var InfoHeaderSize: DWORD; var ImageSize: DWORD);

C++

extern PACKAGE void __fastcall GetDIBSizes(HBITMAP Bitmap, unsigned &InfoHeaderSize, unsigned &ImageSize);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

Description

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

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.

See Also

Personal tools
Previous Versions
Translations