[]
Allows reading images from a multi-page TIFF file/stream.
public class GcTiffReader : IDisposable
Initializes a new instance of GcTiffReader class and assigns the input stream.
public GcTiffReader(Stream stream, bool ownStream = false, int frameIndex = -1)
stream
System.IO.StreamThe input stream.
ownStream
boolIndicates if the input stream should be closed when the GcTiffReader is disposed.
frameIndex
intIndex of a frame to read. Pass -1 to get all frames.
Initializes a new instance of GcTiffReader class and assigns the input file.
public GcTiffReader(string filePath, int frameIndex = -1)
filePath
stringFull path to the input .tiff file.
frameIndex
intIndex of a frame to read. Pass -1 to get all frames.
If possible, gets full path to the associated TIFF file.
public string FilePath { get; }
Gets the list of frames in the associated TIFF file.
Check the value of IsValid property before reading an image from TiffFrame.
public List<TiffFrame> Frames { get; }
Gets a value indicating whether the GcTiffReader has been disposed of.
public bool IsDisposed { get; }
Gets a value indicating if the associated stream should be closed when the GcTiffReader is disposed.
public bool OwnStream { get; }
Gets the Stream associated with GcTiffReader.
public Stream Stream { get; }
Gets the start position in the associated Stream.
public long StreamStartPosition { get; }
Applies a license key to an instance of GcTiffReader.
public void ApplyLicenseKey(string key)
key
stringThe license key to set.
Clean up any resources being used.
public void Dispose()
Performs cleanup operations on managed and unmanaged resources.
protected virtual void Dispose(bool disposing)
disposing
boolPerforms cleanup operations on unmanaged resources.
protected ~GcTiffReader()