DevIL Documentation Home | Previous | Next

iluApplyProfile

The iluApplyProfile function applies a colour profile to the currently bound image.

ILboolean iluApplyProfile(
  const ILstring InProfile,  const ILstring OutProfile);



Parameters

InProfile
Profile file describing the colour space the image is in.
OutProfile
Profile file describing the colour space to convert the image to.


Remarks

iluApplyProfile applies a colour profile (files with extension .icm) to the currently bound image. InProfile describes the current image's colour space, and OutProfile describes the colour space to convert the currently bound image to.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.
ILU_OUT_OF_MEMORY - Could not allocate memory for the new image data.

See Also