Separates a CMYK image by color channels.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class CmykChannelSplitter : ChannelSplitter
The result of channels separation is a number of grayscale images that are used to create printing plates. The number of images depends on the source image color space. The pixel format of the resulting image depends on the source image pixel format. The resulting image is Format8bppGrayscale if the source bitmap is not extended, and Format16bppGrayscale otherwise.
The following code separates a CMYK image by color channels:
using (var reader = new TiffReader(@"Images\cmyk.tif")) using (var splitter = new CmykChannelSplitter()) { splitter.C = new TiffWriter(@"Images\Output\Cmyk_test_Channel_C.tif"); splitter.M = new TiffWriter(@"Images\Output\Cmyk_test_Channel_M.tif"); splitter.Y = new TiffWriter(@"Images\Output\Cmyk_test_Channel_Y.tif"); splitter.K = new TiffWriter(@"Images\Output\Cmyk_test_Channel_K.tif"); Pipeline.Run(reader + splitter); }