---
title: "ColorProfile Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ColorProfile Class
 
This class represents ICC color profile used to provide color management.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Class ColorProfile _Inherits LockableObject
```
 
```csharp
public class ColorProfile : LockableObject
```
 
## Remarks
  
This class encapsulates ICC color profile. Typically it is used as a parameter in color management classes/methods, however it also has a number of useful properties that allow obtaining extra details about the profile. In particular, you can get metainformation such as [Copyright](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Copyright.htm.md), [Description](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Description.htm.md), [DeviceClass](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_DeviceClass.htm.md) (a device kind the profile is intended for), [Info](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Info.htm.md), [Manufacturer](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Manufacturer.htm.md), [Model](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Model.htm.md), and [Name](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_Name.htm.md). Also, you can get a [ColorSpace](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_ColorSpace.htm.md) profile is made for. Static property [ProfileDirectory](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorProfile_ProfileDirectory.htm.md) returns a system folder where all profiles should be stored.
 
You can create ColorProfile instance in three ways:
 
1. **[Constructor](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_ColorProfile_ctor_1_362212bd.htm.md)** creates a ColorProfile instance from specified file.
2. **[FromScreen()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorProfile_FromScreen.htm.md)** creates a ColorProfile instance from the color profile associated with monitor.
3. **[FromSrgb()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorProfile_FromSrgb.htm.md)** Creates a ColorProfile instance from a standard sRGB color profile.
 
## Examples
  
```
Dim bitmap As New Aurigma.GraphicsMill.Bitmap

'Choose LittleCMS color management engine
bitmap.ColorManagement.ColorManagementEngine = Aurigma.GraphicsMill.Transforms.ColorManagementEngine.LittleCms

'Load RGB image without embedded ICM profile from file
bitmap.Load("C:\Flower.jpg")

'Assign input sRGB profile
bitmap.ColorProfile = Aurigma.GraphicsMill.ColorProfile.FromSrgb

'Assing output CMYK profile for conversion
bitmap.ColorManagement.CmykColorProfile = New Aurigma.GraphicsMill.ColorProfile( _
 "C:\windows\system32\spool\drivers\color\EuroscaleCoated.icc")

'Convert to CMYK
bitmap.ColorManagement.ConvertToContinuous( _
 Aurigma.GraphicsMill.ColorSpace.Cmyk, False, bitmap.IsExtended)
```
 
```csharp
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap();

//Choose LittleCMS color management engine
bitmap.ColorManagement.ColorManagementEngine = Aurigma.GraphicsMill.Transforms.ColorManagementEngine.LittleCms;

//Load RGB image without embedded ICM profile from file
bitmap.Load(@"C:\Flower.jpg");

//Assign input sRGB profile
bitmap.ColorProfile = Aurigma.GraphicsMill.ColorProfile.FromSrgb();

//Assing output CMYK profile for conversion
bitmap.ColorManagement.CmykColorProfile = new Aurigma.GraphicsMill.ColorProfile( 
    @"C:\windows\system32\spool\drivers\color\EuroscaleCoated.icc");

//Convert to CMYK
bitmap.ColorManagement.ConvertToContinuous( 
    Aurigma.GraphicsMill.ColorSpace.Cmyk, false, bitmap.IsExtended);
```
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md)
        - Aurigma.GraphicsMill.ColorProfile
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
 
## Object Model

[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_14.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_15.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel2.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_16.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
![](https://www.graphicsmill.com/docs/gm5/ObjectModel1.png)[![](https://www.graphicsmill.com/docs/gm5/Aurigma.GraphicsMill_ObjectModel_17.png)](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorProfile.htm.md)
  
## See Also

### Reference

- [ColorProfile Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_ColorProfile.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
