Gets/sets color profile associated with the bitmap.
Namespace: Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Property ColorProfile As ColorProfile |
Property Value
Color profile associated with the bitmap.
Remarks
Examples
ColorProfile property can be also used to embed another profile into the image:
| | Copy Code |
|---|
Dim bitmap As New Aurigma.GraphicsMill.Bitmap
'Enable color management
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)
|
| | Copy Code |
|---|
Aurigma.GraphicsMill.Bitmap bitmap =
new Aurigma.GraphicsMill.Bitmap(@"c:\Mountain.jpg");
//Enable color management
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