DevIL Documentation Previous | ILUT | Next

 

ilutSetHPal

 

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.

 

ILboolean ilutSetHPal(
  HPALETTE Pal );


Parameters

 
Pal
A Windows palette to set the palette from


Errors

 
ILUT_ILLEGAL_OPERATION
The operation attempted is not allowable in the current state. The function returns with no ill side effects.

See Also

 
ilBindImage, ilGenImages,