ImageEn, unit iexBitmaps

TIEBitmap.ColorProfile

TIEBitmap.ColorProfile


Declaration


property ColorProfile: TIEICC;


Description


Contains the bitmap color profile loaded from TIFF, Jpeg or PSD file format.
Currently used for CMYK pixel format only.

See also: ApplyColorProfileOnRendering


Example


// Apply color profile on rendering
IEGlobalSettings().ApplyColorProfileOnRendering := True; // not actually necessary, this is the default
ImageEnView1.IO.NativePixelFormat := True; // this says "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 says "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 says "convert to RGB"
ImageEnView1.IO.LoadFromFile('cmyk-jpeg.jpg');