This class represents ICC color profile used to provide color management.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Class ColorProfile _ Inherits LockableObject
public class ColorProfile : LockableObject
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:
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)
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);