---
title: "Bitmap..::.ColorProfile Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_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/)

# Bitmap.ColorProfile Property 
 
Gets/sets color profile associated with the bitmap.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property ColorProfile As ColorProfile
```
 
```csharp
public ColorProfile ColorProfile { get; set; }
```
 
### Property Value
Color profile associated with the bitmap.
 
## Remarks
 If no color profile was loaded from file (e.g. file has no embedded profile) this property returns **null**.
 
## Examples
  
ColorProfile property can be also used to embed another profile into the image:
 
```
Dim bitmap As New Aurigma.GraphicsMill.Bitmap
'Choose LittleCMS color management engine
bitmap.ColorManagement.ColorManagementEngine = Aurigma.GraphicsMill.Transforms.ColorManagementEngine.LittleCms

'Load CMYK image with embedded ICC profile from file
bitmap.Load("C:\Horses.jpg")

'Display location of the embedded profile
System.Windows.Forms.MessageBox.Show("ICC Profile is located here:" & vbNewLine & _
  bitmap.ColorProfile.FileName)
```
 
```csharp
Aurigma.GraphicsMill.Bitmap bitmap = 
    new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg");
//Choose LittleCMS color management engine
bitmap.ColorManagement.ColorManagementEngine = Aurigma.GraphicsMill.Transforms.ColorManagementEngine.LittleCms;

//Assign current sRGB profile
bitmap.ColorProfile = Aurigma.GraphicsMill.ColorProfile.FromSrgb();

//Save image with embedded color profile
bitmap.Save(@"c:\Mountain2.jpg", 
    new Aurigma.GraphicsMill.Codecs.JpegEncoderOptions());
```
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
