DevIL Documentation Home | Previous | Next


iluFlipImage flips an image.

ILboolean iluFlipImage(




iluFlipImage inverts an image over the x axis. The image will be upside-down after calling this function. If this function is called twice in succession, the image is restored to its original state. A version of this function in OpenIL is used throughout internally when loading images to correct images that would otherwise be upside-down. Using ilOriginFunc will essentially tell the library which way is up.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ILU_OUT_OF_MEMORY - Could not allocate memory for the new image data.

See Also

ilGenImages, ilBindImage, ilOriginFunc