ImageGear for C and C++ on Windows v19.4 - Updated
IG_DIB_palette_size_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_palette_size_get

This function returns the size of the DIB's palette, in bytes.

Declaration:

 
Copy Code
AT_INT ACCUAPI IG_DIB_palette_size_get(
        HIGDIBINFO hDIB
);

Arguments:

Name Type Description
hDIB HIGDIBINFO DIB info handle.

Return Value:

DIB palette size, in bytes.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Example:

 
Copy Code
HIGDIBINFO hDIB;        /* DIB info handle */
AT_INT paletteSize;     /* Returned size of palette */
paletteSize = IG_DIB_palette_size_get(hDIB);