ChannelSplitter Class

Represents the base class for classes that separate an image by color channels.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public class ChannelSplitter : PipelineElement

Remarks

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. You can use one of the following descendant classes, which allow the separation of images by channels:

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.

Examples

The following code separates a CMYK image by color channels:

C#
using (var reader = new Aurigma.GraphicsMill.Codecs.TiffReader(@"Images\cmyk.tif"))
using (var splitter = new Aurigma.GraphicsMill.CmykChannelSplitter())
{
    splitter.C = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"Images\Output\Cmyk_test_Channel_C.tif");
    splitter.M = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"Images\Output\Cmyk_test_Channel_M.tif");
    splitter.Y = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"Images\Output\Cmyk_test_Channel_Y.tif");
    splitter.K = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"Images\Output\Cmyk_test_Channel_K.tif");
    Aurigma.GraphicsMill.Pipeline.Run(reader + splitter);
}

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference

Manual