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
C#
public ColorProfile ColorProfile { get; set; }
Visual C++
public:
property ColorProfile^ ColorProfile {
	ColorProfile^ get ();
	void set (ColorProfile^ value);
}

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:

 Copy imageCopy 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 imageCopy 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