DevIL Documentation | Home | Previous | Next |
The ilConvertPal function converts an image's palette from one format to another.
ILboolean ilConvertPal(
ILenum DestFormat
);
ilConvertPal converts the current bound image's palette from its format to DestFormat. The only palette formats not supported yet are IL_PAL_RGB16_TGA and IL_PAL_BGR16_TGA.
IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_OUT_OF_MEMORY - Could not allocate memory for the new image palette.
ilGenImages, ilBindImage, ilConvertImage