---
title: "Color Proofing"
canonical: https://www.graphicsmill.com/samples/ColorManagement/ColorProfile/ColorProofing_cs
product: "Graphics Mill"
source: "ColorManagement/ColorProfile/ColorProofing.cs"
---

# Color Proofing

Color proofing - CMYK to RGB using destination (screen) and target device profile.

## Instruction

Converts an image using color profiles for proofing from CMYK to RGB with a specific destination and target device profile.

## Usings

```csharp
using Aurigma.GraphicsMill.Codecs;
using Aurigma.GraphicsMill.Transforms;
```

## Code Snippet

```csharp
using (var reader = ImageReader.Create("Copenhagen_CMYK.jpg"))
using (var converter = new ColorConverter())
using (var writer = ImageWriter.Create("ColorProofing.jpg"))
{
    // LittleCMS is a default color management engine, so no need to specify it
    // converter.ColorManagementEngine = ColorManagementEngine.LittleCms;
    converter.DestinationProfile = ColorProfile.FromSrgb();
    converter.TargetDeviceProfile = new ColorProfile("ISOnewspaper26v4_gr.icc");

    Pipeline.Run(reader + converter + writer);
}
```

## Explanation

The code:

- Reads the image "Copenhagen_CMYK.jpg" using `ImageReader`.
- Converts the color profile from CMYK to RGB, applying color management with the `ISOnewspaper26v4_gr.icc` profile as the target device profile, and `sRGB` as the destination profile.
- Saves the converted image as "ColorProofing.jpg" using `ImageWriter`.
- The color conversion uses LittleCMS, the default color management engine, which does not need explicit specification.

## Tags

- [Color Management](<https://www.graphicsmill.com/samples/tags/color-management_md>): Color management with ICC profiles
- [Pipeline](<https://www.graphicsmill.com/samples/tags/pipeline_md>): Working with images via the Pipeline API

## Input

- [Copenhagen\_CMYK.jpg](<https://www.graphicsmill.com/samples/ColorManagement/compiled/Debug/Copenhagen_CMYK_jpg>) (preview)
- [ISOnewspaper26v4\_gr.icc](<https://www.graphicsmill.com/samples/ColorManagement/compiled/Debug/ISOnewspaper26v4_gr_icc>) (download)

## Output

- [ColorProofing.jpg](<https://www.graphicsmill.com/samples/ColorManagement/compiled/Debug/ColorProofing_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Codecs.ImageReader](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageReader.htm.md>)
- [Aurigma.GraphicsMill.Codecs.ImageReader.Create(String)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_ImageReader_Create_1_bb3a7a4f.htm.md>)
- [Aurigma.GraphicsMill.Codecs.ImageWriter](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageWriter.htm.md>)
- [Aurigma.GraphicsMill.Codecs.ImageWriter.Create(String)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_ImageWriter_Create_1_bb3a7a4f.htm.md>)
- [Aurigma.GraphicsMill.ColorProfile](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorProfile.htm.md>)
- [Aurigma.GraphicsMill.ColorProfile.FromSrgb](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorProfile_FromSrgb.htm.md>)
- [Aurigma.GraphicsMill.Transforms.ColorConverter](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ColorConverter.htm.md>)
- [Aurigma.GraphicsMill.Transforms.ColorConverter.DestinationProfile](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_DestinationProfile.htm.md>)
- [Aurigma.GraphicsMill.Transforms.ColorConverter.TargetDeviceProfile](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_TargetDeviceProfile.htm.md>)
