ChannelCombiner Class

Represents the base class for classes that create an image by combining several grayscale images.

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

Syntax

C#
public class ChannelCombiner : PipelineElement

Remarks

Merging channels into a single image allows the creating of color images by combining several grayscale images. It is useful when, for example, you have 4 grayscale bitmaps prepared for printing (cyan, magenta, yellow, and black) and you need to make a color preview of the resulting image. The easiest way to merge channels into one image is to use one of the following descendant classes:

Note

The merging channels must be of the same dimensions and resolution.

Examples

The following code creates a CMYK image by combining 4 grayscale bitmaps (one bitmap per color channel):

C#
using (var combiner = new Aurigma.GraphicsMill.CmykChannelCombiner())
using (var writer = new Aurigma.GraphicsMill.Codecs.TiffWriter(@"Images\Output\Cmyk_test_combined.tif"))
{
    combiner.C = new Aurigma.GraphicsMill.Codecs.TiffReader(@"Images\Cmyk_test_Channel_C.tif");
    combiner.M = new Aurigma.GraphicsMill.Codecs.TiffReader(@"Images\Cmyk_test_Channel_M.tif");
    combiner.Y = new Aurigma.GraphicsMill.Codecs.TiffReader(@"Images\Cmyk_test_Channel_Y.tif");
    combiner.K = new Aurigma.GraphicsMill.Codecs.TiffReader(@"Images\Cmyk_test_Channel_K.tif");
    combiner.AutoDisposeSources = true;
    Aurigma.GraphicsMill.Pipeline.Run(combiner + writer);
}

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