DevIL Documentation Home | Previous | Next

iluNegative

The iluNegative function creates a negative of the current image.


ILboolean iluNegative(
  ILvoid
);

Parameters

None

Remarks

iluNegative creates a negative version of an image, like it was viewed as a picture negative instead of the actual picture. The effect is caused by inverting the image's colours, such as a green pixel would become purple (red-blue).

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage