[]
Allows reading images from a multipage TIFF file/stream.
public class GcWicTiffReader : IDisposable
Initializes a new instance of GcWicTiffReader class and assigns the input stream.
public GcWicTiffReader(Stream stream, bool ownStream = false, int frameIndex = -1, ImagingFactory imagingFactory = null)
stream
System.IO.StreamThe input stream.
ownStream
boolIndicates if the input stream should be closed when the GcWicTiffReader is disposed.
frameIndex
intIndex of a frame to read. Pass -1 to get all frames.
imagingFactory
ImagingFactoryThe existing imaging factory, to avoid duplicating factories.
Initializes a new instance of GcWicTiffReader class and assigns the input file.
public GcWicTiffReader(string filePath, int frameIndex = -1, ImagingFactory imagingFactory = null)
filePath
stringFull path to the input .tiff file.
frameIndex
intIndex of a frame to read. Pass -1 to get all frames.
imagingFactory
ImagingFactoryThe existing imaging factory, to avoid duplicating factories.
If possible, gets the file name of the associated .tiff file.
public string FilePath { get; }
Gets the list of frames in the associated TIFF file/stream.
public List<WicTiffFrame> Frames { get; }
Gets a value indicating if the associated stream should be closed when the GcWicTiffReader is disposed.
public bool OwnStream { get; }
Gets or sets a value indicating if the WicFactory should be disposed together with the GcWicTiffReader class.
public bool OwnWicFactory { get; set; }
Gets the Stream associated with GcWicTiffReader.
public Stream Stream { get; }
Gets the start position in the associated Stream.
public long StreamStartPosition { get; }
Gets an instance of the ImagingFactory class.
public ImagingFactory WicFactory { get; }
Applies a license key to an instance of GcWicTiffReader.
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 ~GcWicTiffReader()