DevIL Documentation | Home | Previous | Next |
The ilutSetHPal function sets the current image's palette with Pal.
ILboolean ilutSetHPal(
HPALETTE Pal
);
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.
ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.