Working with Embedded ICC Profiles

In color management, an ICC profile is a set of data that characterizes a color input or output device, or a color space. ICC profiles can be embedded in most image files (for example, in JPEG, TIFF, PSD, etc.). An ICC profile allows you to be sure that an application will correctly color match the file. Graphics Mill can load embedded ICC profiles and save image files with ICC profiles.

To manage the ICC profile of an image use the Bitmap.ColorProfile property.

The following code demonstrates how to embed an ICC profile into an image:

C#
using (var bitmap = new Bitmap(@"Images\in.jpg"))
{
    //Assign a standard sRGB profile
    bitmap.ColorProfile = ColorProfile.FromSrgb();

    //Save image with embedded color profile
    bitmap.Save(@"Images\Output\out.jpg");
}

See Also

Reference

Manual