Vcl.Imaging.GIFImg.InternalGetDIBSizes
Delphi
procedure InternalGetDIBSizes(Bitmap: HBITMAP; var InfoHeaderSize: Integer; var ImageSize: longInt; PixelFormat: TPixelFormat);
C++
extern DELPHI_PACKAGE void __fastcall InternalGetDIBSizes(HBITMAP Bitmap, int &InfoHeaderSize, int &ImageSize, Vcl::Graphics::TPixelFormat PixelFormat);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | Vcl.Imaging.GIFImg |
Description
Calculates the buffer sizes nescessary for converting a bitmap into a DIB of a specified pixel format.
Call InternalGetDIBSizes to calculate the buffer sizes necessary when converting a bitmap into a DIB of a specified pixel format.
The parameters of InternalGetDIBSizes are listed in the following table, together with their meanings.
Parameter | Meaning |
---|---|
Bitmap |
The handle of the source bitmap. |
InfoHeaderSize |
The returned size of a buffer that will receive the DIB's TBitmapInfo structure. |
ImageSize |
The returned size of a buffer that will receive the DIB's pixel data. |
PixelFormat |
The pixel format of the destination DIB. |