ImageEn, unit iesettings

TIEImageEnGlobalSettings.EnableCMS

TIEImageEnGlobalSettings.EnableCMS


Declaration

property EnableCMS: boolean;


Description

Enables a Color Management System. The default CMS is provided by Windows.

Note: EnableCMS is supported by JPEG (RGB and CMYK), TIFF and PSD

Default: False (no color profile is applied).


Examples

// Apply color profile on rendering
IEGlobalSettings().ApplyColorProfileOnRendering := True; // not actually necessary, this is the default
ImageEnView1.IO.NativePixelFormat := True; // This means "Do not convert to RGB"
ImageEnView1.IO.LoadFromFile('cmyk-jpeg.jpg');

// Apply color profile before rendering
IEGlobalSettings().EnableCMS := True;
IEGlobalSettings().ApplyColorProfileOnRendering := False;
ImageEnView1.IO.NativePixelFormat := False; // This means "Convert to RGB"
ImageEnView1.IO.LoadFromFile('cmyk-jpeg.jpg');

// Do not apply color profile
IEGlobalSettings().EnableCMS := False;
IEGlobalSettings().ApplyColorProfileOnRendering := False;
ImageEnView1.IO.NativePixelFormat := False; // This means "Convert to RGB"
ImageEnView1.IO.LoadFromFile('cmyk-jpeg.jpg');

// Load a TIFF containing a CMYK profile, save to JPEG maintaining the profile
IEGlobalSettings().EnableCMS := False;
ImageEnView.IO.LoadFromFile('D:\Img with ICC Profile.tif');
ImageEnView1.IO.Params.JPEG_ColorSpace := ioJPEG_CMYK;
ImageEnView1.IO.SaveToFile('D:\Img with ICC Profile.jpeg');


See Also

- Color Management System
- ApplyColorProfileOnRendering
- ColorProfile
- InputICCProfile
- DefaultICCProfile
- OutputICCProfile