Represents the ICC color profile used to provide color management.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class ColorProfile : IDisposable
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:
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"); }