Contains methods and properties used to provide color management.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class ColorManagementProvider : IDisposable
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.
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"); }