Heading to the Printing United trade show? Schedule a meeting with our representatives.

TiffExtraChannelCollection Class

Represents a collection of TIFF extra channels.

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


public sealed class TiffExtraChannelCollection : Collection<TiffExtraChannelEntry>


The collection contains all extra channels associated with the TIFF page. Using this property you can either obtain all extra channels from the page or write some channels in addition to primary ones.


The following code adds a JPEG image to a TIFF image as an unassociated alpha extra channel, and saves the resulting TIFF image.

using (var reader = new TiffReader(@"Images\BusinessCard.tif"))
using (var writer = new TiffWriter(@"Images\Output\result.tif"))
    // Load bitmap for the extra channel.
    // Note: image for extra channel must be gray scale and have the same dimensions and DPI as the source one. 
    using (var extraBitmap = new Bitmap(@"Images\extraChannel.jpg"))
        // Create extra channel options based on extraBitmap.
        var extraChannel = new TiffExtraChannelEntry(extraBitmap, TiffChannelType.Alpha);

        Pipeline.Run(reader + writer);

Inheritance Hierarchy

L System.Collections.ObjectModel.Collection < TiffExtraChannelEntry >
L Aurigma.GraphicsMill.Codecs.TiffExtraChannelCollection

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