/// <summary>
    /// Generates an RGB preview of CMYK color conversion using memory-friendly Pipeline API
    /// </summary>
    private static void PreviewRgbToCmykOnScreenMemoryFriendly()
    {
        using (var reader = ImageReader.Create("../../../../_Input/Copenhagen_RGB.jpg"))
            using (var converter = new ColorConverter())
                using (var writer = ImageWriter.Create("../../../../_Output/PreviewRgbToCmykOnScreenMemoryFriendly.jpg"))
                {
                    converter.DestinationPixelFormat = PixelFormat.Format24bppRgb;
                    converter.DefaultSourceProfile   = ColorProfile.FromSrgb();
                    converter.TargetDeviceProfile    = new ColorProfile("../../../../_Input/ColorProfiles/ISOcoated_v2_eci.icc");
                    converter.DestinationProfile     = ColorProfile.FromScreen();
                    converter.TransformationIntent   = ColorTransformationIntent.Perceptual;

                    Pipeline.Run(reader + converter + writer);
                }
    }
    /// <summary>
    /// Generates an RGB preview of CMYK color conversion
    /// </summary>
    private static void PreviewRgbToCmykOnScreen()
    {
        using (var bitmap = new Bitmap("../../../../_Input/Copenhagen_RGB.jpg"))
        {
            if (bitmap.ColorProfile == null)
            {
                bitmap.ColorProfile = ColorProfile.FromSrgb();
            }

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

            bitmap.ColorManagement.Convert(PixelFormat.Format24bppRgb);

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