Skip to main content

cxGetBitmapPixelFormat(TBitmap) Method

Returns the color depth of a bitmap image stored in the specified bitmap container.

Declaration

function cxGetBitmapPixelFormat(ABitmap: TBitmap): Integer;

Parameters

Name Type
ABitmap TBitmap

Returns

Type
Integer

Remarks

Call this global function to obtain the number of bits per pixel corresponding to the pixel format of the bitmap container passed as the ABitmap parameter.

See Also