TiffReader Class

This class enables you to read TIFF images.

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

Syntax

C#
public sealed class TiffReader : ImageReader

Remarks

TIFF format is one of the most comprehensive image formats. It was designed to promote the interchange of digital image data. The general scenario TIFF format was invented for, assumes that scanning or painting software creates a TIFF file, which can then be read and incorporated into a document or publication by an application such as a desktop publishing package. It is also widely used to retrieve facsimile messages.

This image format is rather versatile and have a lot of modifications. It supports most Graphics Mill pixel formats even such exotic ones like Format80bppAcmyk. It also can store multiple images in the single file (mostly used for fax images and other documents stored as 1-bit bitmaps).

TIFF files can also contain Adobe® resources, XML, EXIF and IPTC data.

Examples

The following code snippet demonstrates how to split a multiframe image file into separate JPEG files:

C#
using (var reader = new TiffReader(@"Images\in.tif"))
{
    for (int i = 0; i < reader.Frames.Count; i++)
    {
        using (var bitmap = reader.Frames[i].GetBitmap())
        {
            bitmap.Save(@"Images\Output\frame_" + i.ToString() + ".jpg");
        }
    }
}

Inheritance Hierarchy

System.Object

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