[]
Allows creating a multi-page TIFF file.
public class GcTiffWriter : IDisposable
Initializes a new instance of GcTiffWriter class and sets the output stream.
public GcTiffWriter(Stream stream, bool ownStream = false, bool bigEndian = false)
stream
System.IO.StreamThe output stream.
ownStream
boolIndicates whether the output stream should be disposed together with GcTiffWriter.
bigEndian
boolIndicates whether big-endian (true) or little-endian (false) byte order is used within the output stream.
Initializes a new instance of GcTiffWriter class and sets the output file.
public GcTiffWriter(string filePath, bool bigEndian = false)
filePath
stringFull path to the output file.
bigEndian
boolIndicates whether big-endian (true) or little-endian (false) byte order is used within the output file.
Gets or sets the default settings for TIFF encoding.
public TiffFrameSettings DefaultFrameSettings { get; set; }
Gets a value indicating whether the GcTiffWriter has been disposed of.
public bool IsDisposed { get; }
Writes the specified BilevelBitmap to the output stream as the next frame.
public void AppendFrame(BilevelBitmap bitmap, TiffFrameSettings frameSettings = null)
bitmap
BilevelBitmapThe source BilevelBitmap.
frameSettings
TiffFrameSettingsThe settings for encoding TIFF frame.
Writes the specified GcBitmap to the output stream as the next frame.
public void AppendFrame(GcBitmap bitmap, TiffFrameSettings frameSettings = null)
bitmap
GcBitmapThe source GcBitmap.
frameSettings
TiffFrameSettingsThe settings for encoding TIFF frame.
Writes the specified GrayscaleBitmap to the output stream as the next frame.
public void AppendFrame(GrayscaleBitmap bitmap, TiffFrameSettings frameSettings = null)
bitmap
GrayscaleBitmapThe source GrayscaleBitmap.
frameSettings
TiffFrameSettingsThe settings for encoding TIFF frame.
Writes the specified Indexed4bppBitmap to the output stream as the next frame.
public void AppendFrame(Indexed4bppBitmap bitmap, TiffFrameSettings frameSettings = null)
bitmap
Indexed4bppBitmapThe source Indexed4bppBitmap with LowerBitsFirst set to false.
frameSettings
TiffFrameSettingsThe settings for encoding TIFF frame.
Writes the specified Indexed8bppBitmap to the output stream as the next frame.
public void AppendFrame(Indexed8bppBitmap bitmap, TiffFrameSettings frameSettings = null)
bitmap
Indexed8bppBitmapThe source Indexed8bppBitmap.
frameSettings
TiffFrameSettingsThe settings for encoding TIFF frame.
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 ~GcTiffWriter()