DevIL Documentation Home | Previous | Next

iluSaturate1f, iluSaturate4f

These functions modify the saturation of an image.


ILboolean iluSaturate1f(
  ILfloat Saturation
);

ILboolean iluSaturate4f( ILfloat r, ILfloat g, ILfloat b, ILfloat Saturation );


Parameters

Saturation
Amount of saturation to apply to the current bound image.
r
Amount of red to saturate.
g
Amount of green to saturate.
b
Amount of blue to saturate.

Remarks

iluSaturate1f applies a saturation consistent with the IL_LUMINANCE conversion values to red, green and blue. iluSaturate4f applies saturation to the colour components in the amounts specified. All parameters go from -1.0 to 1.0.

Error Codes

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

See Also

ilGenImages, ilBindImage