DevIL Documentation Home | Previous | Next

ilutGetHPal

The ilutGetHPal function returns a Windows-friendly palette.


HPALETTE ilutGetHPal(
  ILvoid
);

Parameters

None

Remarks

If the current bound image has a palette, ilutGetHPal returns a Windows-compatible copy of the current image's palette in HPAL format.

Error Codes

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.

See Also

ilGenImages, ilBindImage, ilutConvertToHBitmap