DevIL Documentation Home | Previous | Next

iluGammaCorrectInter, iluGammaCorrectScale

These two functions adjust the gamma of an image.


ILboolean iluGammaCorrectInter(
  ILfloat Gamma
);

ILboolean iluGammaCorrectScale( ILfloat Gamma );


Parameters

Gamma
Gamma correcti

Remarks

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.

Error Codes

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

See Also

ilGenImages, ilBindImage