Gets/sets color profile associated with the bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Property ColorProfile As ColorProfile
public ColorProfile ColorProfile { get; set; }
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)
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());