Preview RGB To CMYK On Screen (Memory Friendly)
View as MarkdownGenerates an RGB preview of CMYK color conversion using memory-friendly Pipeline API.
Code Snippet
using (var reader = ImageReader.Create("Copenhagen_RGB.jpg"))
using (var converter = new ColorConverter())
using (var writer = ImageWriter.Create("PreviewRgbToCmykOnScreenMemoryFriendly.jpg"))
{
converter.DestinationPixelFormat = PixelFormat.Format24bppRgb;
converter.DefaultSourceProfile = ColorProfile.FromSrgb();
converter.TargetDeviceProfile = new ColorProfile("ISOcoated_v2_eci.icc");
converter.DestinationProfile = ColorProfile.FromScreen();
converter.TransformationIntent = ColorTransformationIntent.Perceptual;
Pipeline.Run(reader + converter + writer);
}
Input
Copenhagen_RGB.jpg
ISOcoated_v2_eci.icc
DownloadOutput
PreviewRgbToCmykOnScreenMemoryFriendly.jpg
Used APIs
- Aurigma.GraphicsMill.Codecs.ImageReader
- Aurigma.GraphicsMill.Codecs.ImageReader.Create(String)
- Aurigma.GraphicsMill.Codecs.ImageWriter
- Aurigma.GraphicsMill.Codecs.ImageWriter.Create(String)
- Aurigma.GraphicsMill.ColorProfile
- Aurigma.GraphicsMill.ColorProfile.FromScreen
- Aurigma.GraphicsMill.ColorProfile.FromSrgb
- Aurigma.GraphicsMill.Transforms.ColorConverter
- Aurigma.GraphicsMill.Transforms.ColorConverter.DefaultSourceProfile
- Aurigma.GraphicsMill.Transforms.ColorConverter.DestinationPixelFormat
- Aurigma.GraphicsMill.Transforms.ColorConverter.DestinationProfile
- Aurigma.GraphicsMill.Transforms.ColorConverter.TargetDeviceProfile
- Aurigma.GraphicsMill.Transforms.ColorConverter.TransformationIntent
- Aurigma.GraphicsMill.Transforms.ColorTransformationIntent