FreeImage Documentation

FreeImage Documentation - Contents Previous Next Up

FreeImage bitmap information functions

Subsections


FreeImage_GetTransparencyCount

BYTE FreeImage_GetTransparencyCount(void *dib);

Returns the number of transparent palette colors stored into the transparency color table of the given bitmap. Every palettized bitmap includes a transparency table containing up to 256 alpha values. At this moment only FreeImageQt uses the alpha values.

FreeImage_GetTransparencyTable

BYTE *FreeImage_GetTransparencyTable(void *dib);

Returns the transparency table assigned to this bitmap. If the bitmap doesn't contain a transparency table, NULL is returned.

FreeImage_SetTransparencyTable

void FreeImage_SetTransparencyTable(void *dib, BYTE *table, BYTE count);

Assigns a new transparency table to the bitmap. The transparency table consists of up to 256 bytes in an array.


Copyright 2000 Floris van den Berg (freeimage@wxs.nl)