DevIL Documentation | Home | Previous | Next |
The ilutGetHPal function returns a Windows-friendly palette.
HPALETTE ilutGetHPal(
ILvoid
);
None
If the current bound image has a palette, ilutGetHPal returns a Windows-compatible copy of the current image's palette in HPAL format.
ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ILUT_OUT_OF_MEMORY - Could not allocate enough memory for the palette.
ilGenImages, ilBindImage, ilutConvertToHBitmap