[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcTiffWriter

Class GcTiffWriter

Namespace
GrapeCity.Documents.Imaging
Assembly
GcDocs.Imaging.dll

Allows creating a multi-page TIFF file.

public class GcTiffWriter : IDisposable
Inheritance
object
GcTiffWriter
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GcTiffWriter(Stream, bool, bool)

Initializes a new instance of GcTiffWriter class and sets the output stream.

public GcTiffWriter(Stream stream, bool ownStream = false, bool bigEndian = false)

Parameters

stream System.IO.Stream

The output stream.

ownStream bool

Indicates whether the output stream should be disposed together with GcTiffWriter.

bigEndian bool

Indicates whether big-endian (true) or little-endian (false) byte order is used within the output stream.

GcTiffWriter(string, bool)

Initializes a new instance of GcTiffWriter class and sets the output file.

public GcTiffWriter(string filePath, bool bigEndian = false)

Parameters

filePath string

Full path to the output file.

bigEndian bool

Indicates whether big-endian (true) or little-endian (false) byte order is used within the output file.

Properties

DefaultFrameSettings

Gets or sets the default settings for TIFF encoding.

public TiffFrameSettings DefaultFrameSettings { get; set; }

Property Value

TiffFrameSettings

IsDisposed

Gets a value indicating whether the GcTiffWriter has been disposed of.

public bool IsDisposed { get; }

Property Value

bool

Methods

AppendFrame(BilevelBitmap, TiffFrameSettings)

Writes the specified BilevelBitmap to the output stream as the next frame.

public void AppendFrame(BilevelBitmap bitmap, TiffFrameSettings frameSettings = null)

Parameters

bitmap BilevelBitmap

The source BilevelBitmap.

frameSettings TiffFrameSettings

The settings for encoding TIFF frame.

AppendFrame(GcBitmap, TiffFrameSettings)

Writes the specified GcBitmap to the output stream as the next frame.

public void AppendFrame(GcBitmap bitmap, TiffFrameSettings frameSettings = null)

Parameters

bitmap GcBitmap

The source GcBitmap.

frameSettings TiffFrameSettings

The settings for encoding TIFF frame.

AppendFrame(GrayscaleBitmap, TiffFrameSettings)

Writes the specified GrayscaleBitmap to the output stream as the next frame.

public void AppendFrame(GrayscaleBitmap bitmap, TiffFrameSettings frameSettings = null)

Parameters

bitmap GrayscaleBitmap

The source GrayscaleBitmap.

frameSettings TiffFrameSettings

The settings for encoding TIFF frame.

AppendFrame(Indexed4bppBitmap, TiffFrameSettings)

Writes the specified Indexed4bppBitmap to the output stream as the next frame.

public void AppendFrame(Indexed4bppBitmap bitmap, TiffFrameSettings frameSettings = null)

Parameters

bitmap Indexed4bppBitmap

The source Indexed4bppBitmap with LowerBitsFirst set to false.

frameSettings TiffFrameSettings

The settings for encoding TIFF frame.

AppendFrame(Indexed8bppBitmap, TiffFrameSettings)

Writes the specified Indexed8bppBitmap to the output stream as the next frame.

public void AppendFrame(Indexed8bppBitmap bitmap, TiffFrameSettings frameSettings = null)

Parameters

bitmap Indexed8bppBitmap

The source Indexed8bppBitmap.

frameSettings TiffFrameSettings

The settings for encoding TIFF frame.

Dispose()

Clean up any resources being used.

public void Dispose()

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~GcTiffWriter()

Performs cleanup operations on unmanaged resources.

protected ~GcTiffWriter()