DevIL Documentation Home | Previous | Next

ilutSetHPal

The ilutSetHPal function sets the current image's palette with Pal.


ILboolean ilutSetHPal(
  HPALETTE Pal
);

Parameters

Pal
A Windows palette to set the palette from.

Remarks

ilutSetHPal sets the current iamge's palette from a logical Windows palette handle specified in Pal. If the current image is not colour-indexed, the palette is still loaded, though it will never be used.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage