Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

ColorProfile Class

This class represents ICC color profile used to provide color management.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Class ColorProfile _
	Inherits LockableObject
C#
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, Description, DeviceClass (a device kind the profile is intended for), Info, Manufacturer, Model, and Name. Also, you can get a ColorSpace profile is made for. Static property ProfileDirectory returns a system folder where all profiles should be stored.

You can create ColorProfile instance in three ways:

  1. Constructor creates a ColorProfile instance from specified file.
  2. FromScreen() creates a ColorProfile instance from the color profile associated with monitor.
  3. FromSrgb() Creates a ColorProfile instance from a standard sRGB color profile.

Examples

Visual Basic
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)
C#
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
L Aurigma.GraphicsMill.LockableObject
L 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






See Also

Reference