Black point compensation
Posted: 2014-04-03T22:31:43-07:00
Hi all.
I've just started Magick.NET.
I need to convert RGB image to CMYK image by using ICC profile.
I could make color space modification successfully, but I couldn't use Black Point Compensation like -black-point-compensation option.
Has Magick.NET been implemented Black Point Compensation feature yet?
Thank you.
P.S.
This is a piece of code I wrote:
I've just started Magick.NET.
I need to convert RGB image to CMYK image by using ICC profile.
I could make color space modification successfully, but I couldn't use Black Point Compensation like -black-point-compensation option.
Has Magick.NET been implemented Black Point Compensation feature yet?
Thank you.
P.S.
This is a piece of code I wrote:
Code: Select all
MagickReadSettings setting = new MagickReadSettings();
setting.ColorSpace = ColorSpace.sRGB;
MagickImage image = new MagickImage(file, setting);
image.AddProfile(new ColorProfile(in_profile));
image.AddProfile(new ColorProfile(out_profile));
image.ColorSpace = ColorSpace.CMYK;
if (intent == "Perceptual") image.RenderingIntent = RenderingIntent.Perceptual;
else if (intent == "Saturation") image.RenderingIntent = RenderingIntent.Saturation;
else if (intent == "Relative") image.RenderingIntent = RenderingIntent.Relative;
else if (intent == "Absolute") image.RenderingIntent = RenderingIntent.Absolute;
else image.RenderingIntent = RenderingIntent.Undefined;
image.CompressionMethod = CompressionMethod.Zip;
/************************************
* Need Black Point Compensation *
************************************/
image.Write(file);