DevIL Documentation | Home | Previous | Next |
The ilConvertImage function converts an image from one format to another.
ILboolean ilConvertImage(
ILenum DestFormat,
ILenum DestType
);
ilConvertImage converts the current bound image from its format/type to DestFormat and DestType. Almost all conversions are allowable.
IL_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
IL_INVALID_CONVERSION - DestFormat and/or DestType was an invalid identifier.
IL_OUT_OF_MEMORY - Could not allocate memory for the converted image data.
ilGenImages, ilBindImage, ilGetBoolean, ilGetBooleanv, ilGetInteger, ilGetIntegerv, ilConvertPal