DevIL Documentation | Home | Previous | Next |
The iluSwapColours function changes the colour order of the current image.
ILboolean iluSwapColours(
ILvoid
);
None
iluSwapColours "swaps" the colour order of the current image. If the current image is in bgr(a) format, iluSwapColours will change the image to use rgb(a) format, or vice-versa. This can be helpful when you want to manipulate the image data yourself but only want to use a certain colour order. To determine the current colour order, call ilGetInteger with the IL_IMAGE_FORMAT parameter.
ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ilGenImages, ilBindImage, ilGetBoolean, ilGetBooleanv, ilGetInteger, ilGetIntegerv