DevIL Documentation Previous | IL | Next

 

ilApplyProfile

 

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. If InProfile is NULL, DevIL attempts to use the colour profile present in the image, if one is present, else it returns IL_FALSE.

 

ILboolean ilApplyProfile(
  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.


Errors

 
IL_ILLEGAL_OPERATION
The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.
IL_INVALID_PARAM
InProfile and/or OutProfile was NULL.
IL_OUT_OF_MEMORY
Could not allocate enough memory for the image data.