Aurigma Graphics Mill 5.5 for .NET
Bitmap..::.ColorProfile Property
Gets/sets color profile associated with the bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Property ColorProfile As ColorProfile
C#
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:
Visual Basic
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)
C#
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());