|DevIL Documentation||Home | Previous | Next|
These two functions adjust the gamma of an image.
ILboolean iluGammaCorrectInter( ILfloat Gamma );
ILboolean iluGammaCorrectScale( ILfloat Gamma );
These two functions adjust the gamma of the current image. If Gamma is less than 1.0, the image is darkened. If Gamma is greater than 1.0, the image is brightened. iluGammaCorrectInter is a slower function and uses interpolation to achieve this effect. iluGammaCorrectScale achieves this effect by scaling the colours via iluScaleColours.
ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.