---
title: "ColorConverter Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_ColorConverter.htm
product: "Graphics Mill"
---

# ColorConverter Class
 
Applies color conversion to an image.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class ColorConverter : Transform
```
 
## Remarks
  
This class should be used for appling color management during color conversions, drawing, and other operations where it is applicable. To choose the color management engine, use the [ColorManagementEngine](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_ColorManagementEngine.htm.md) property. You can specify such color management parameters as a default input profile ([DefaultSourceProfile](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_DefaultSourceProfile.htm.md)), output profile ([DestinationProfile](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_DestinationProfile.htm.md) property), and profile for target device ([TargetDeviceProfile](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_TargetDeviceProfile.htm.md) property). A color management intent parameter is accessible through the [TransformationIntent](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_ColorConverter_TransformationIntent.htm.md) property.
 
After you set color management up, you can apply color conversions. This class applies two different kinds of color conversion: conversion to indexed pixel formats (color reduction) and conversion to continuous ones.
 
## Examples
  
```csharp
using (var reader = new JpegReader(@"Images\cmyk.jpg"))
using (var converter = new ColorConverter(PixelFormat.Format24bppRgb))
using (var writer = new JpegWriter(@"Images\Output\out.jpg"))
{
    converter.ColorManagementEngine = ColorManagementEngine.LittleCms;
    converter.DefaultSourceProfile = new ColorProfile(@"_Input\ColorProfiles\EuroscaleCoated.icc");
    converter.DestinationProfile = ColorProfile.FromSrgb();
    Pipeline.Run(reader + converter + writer);
}
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - [Aurigma.GraphicsMill.Transforms.Transform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Transform.htm.md)
            - Aurigma.GraphicsMill.Transforms.ColorConverter
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [ColorConverter Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Transforms_ColorConverter.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)

### Manual

- [Converting Colors with Color Management](https://www.graphicsmill.com/docs/gm/converting-color-with-color-management.htm.md)
