quote:
...convert to srgb profile if another profile is detected.
It is done automatically if you set iegEnableCMS:=true
ImageEn will convert from source ICC to sRGB.
Source ICC is loaded in ImageEnView1.IO.Params.InputICCProfile.
Destination (display) ICC is preset in ImageEnView1.IO.Params.OutputICCProfile. ImageEn assigns sRGB for default.
quote:
When i load an image, i want to have the srgb profile assign if no profile is detected
A third profile object exist: "DefaultICCProfile". It contains the ICC profile to use in case the source image hasn't one. So you can write:
ImageEnView1.IO.Params.DefaultICCProfile.LoadFromFile('c:\Windows\System32\spool\drivers\color\AdobeRGB1998.icc');
ImageEnView1.IO.LoadFromFile('input.tif');
An important note: at the moment, ImageEn doesn't save color profiles if they are processed.