ColorProfile Class

Represents the ICC color profile used to provide color management.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class ColorProfile : IDisposable

Remarks

This class encapsulates an ICC color profile. Typically it is used as a parameter in color management classes/methods, however it also has a number of useful properties that allow obtaining extra details about the profile. In particular, you can get metainformation such as Copyright, Description, DeviceClass (a device kind the profile is intended for), Manufacturer, and Model. You can also get a ColorSpace the profile is made for.

You can create ColorProfile instance in four ways:

  1. Constructor creates a ColorProfile instance from specified file.
  2. FromScreen() creates a ColorProfile instance from the color profile associated with monitor.
  3. FromSrgb() Creates a ColorProfile instance from a standard sRGB color profile.
  4. FromAdobe1998() creates a ColorProfile instance from the standard Adobe RGB (1998) color profile.

Examples

C#
using (var bitmap = new Bitmap(@"Images\in.jpg"))
{
    bitmap.ColorManagement.ColorManagementEngine = ColorManagementEngine.LittleCms;
    if (bitmap.ColorProfile == null)
        bitmap.ColorProfile = ColorProfile.FromSrgb();
    bitmap.ColorManagement.DestinationProfile = new ColorProfile(@"_Input\ColorProfiles\EuroscaleCoated.icc");
    bitmap.ColorManagement.Convert(PixelFormat.Format32bppCmyk);
    bitmap.Save(@"Images\Output\out.jpg");
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.ColorProfile

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference