DevIL Documentation Home | Previous | Next

iluScaleColours

The iluScaleColours function scales the colours of an image.


ILboolean iluScaleColours(
  ILfloat r,
  ILfloat g,
  ILfloat b
);

Parameters

r
Amount of red to use from the original image.
g
Amount of red to use from the original image.
b
Amount of red to use from the original image.

Remarks

iluScaleColours scales the individual colour components of the current bound image. Using 1.0f as any of the parameters yields that colour component's original plane in the new image.

Error Codes

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

See Also

ilGenImages, ilBindImage, iluGammaCorrectInter, iluGammaCorrectScale