CMYK To CMYK Using Device Link Profile
Converts one CMYK color space to another CMYK one using device link color profile.
Сode Snippet
// Source image with the "ISO Coated v2" color profile
using (var reader = ImageReader.Create("Copenhagen_CMYK.jpg"))
using (var converter = new ColorConverter(PixelFormat.Format32bppCmyk))
using (var writer = ImageWriter.Create("DeviceLinkProfile.jpg"))
{
converter.ColorManagementEngine = ColorManagementEngine.LittleCms;
// Device link profile is used for color conversion
converter.DeviceLinkProfile = new ColorProfile("ISOcoated_v2_to_PSOcoated_v3_DeviceLink.icc");
// Destination profile is just embedded into the result image. It is not used for color conversion.
converter.DestinationProfile = new ColorProfile("PSOcoated_v3.icc");
Pipeline.Run(reader + converter + writer);
}
Input
Copenhagen_CMYK.jpg
ISOcoated_v2_to_PSOcoated_v3_DeviceLink.icc
DownloadPSOcoated_v3.icc
DownloadOutput
DeviceLinkProfile.jpg
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog