Preview RGB To CMYK On Screen

Color Management Color Conversion Bitmap

Generates an RGB preview of CMYK color conversion.

Сode Snippet

using (var bitmap = new Bitmap("Copenhagen_RGB.jpg"))
{
    if (bitmap.ColorProfile == null)
    {
        bitmap.ColorProfile = ColorProfile.FromSrgb();
    }

    bitmap.ColorManagement.TargetDeviceProfile = new ColorProfile("ISOcoated_v2_eci.icc");
    bitmap.ColorManagement.DestinationProfile = ColorProfile.FromScreen();

    bitmap.ColorManagement.Convert(PixelFormat.Format24bppRgb);

    bitmap.Save("PreviewRgbToCmykOnScreen.jpg");
}

Input

Copenhagen_RGB.jpg

ISOcoated_v2_eci.icc

Download

Output

PreviewRgbToCmykOnScreen.jpg

For AI-assisted development: Download Graphics Mill Code Samples XML Catalog