ColorManagementProvider Class

Contains methods and properties used to provide color management.

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

Syntax

C#
public sealed class ColorManagementProvider : IDisposable

Remarks

This class is accessible via the Bitmap.ColorManagement property. You should use it if you need to apply color management during color conversions, drawing, and other operations where it is applicable.

To choose the color management engine, use the ColorManagementEngine property. You can specify an output profile (DestinationProfile property) and profile for target device (TargetDeviceProfile property). A color management intent parameter is accessible through the TransformationIntent property.

After you set color management up, you can apply color conversions using the Convert() methods.

Examples

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

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.ColorManagementProvider

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

Manual