[]
Allows creating a multipage TIFF file.
public class GcWicTiffWriter : IDisposable
Initializes a new instance of GcWicTiffWriter class and sets the output stream.
public GcWicTiffWriter(Stream stream, bool ownStream = false, ImagingFactory imagingFactory = null)
stream System.IO.StreamThe output stream.
ownStream boolIndicates whether the output stream should be disposed together with GcWicTiffWriter.
imagingFactory ImagingFactoryThe existing imaging factory, to avoid duplicating factories.
Initializes a new instance of GcWicTiffWriter class and sets the output file.
public GcWicTiffWriter(string filePath, ImagingFactory imagingFactory = null)
filePath stringFull path to the output file.
imagingFactory ImagingFactoryThe existing imaging factory, to avoid duplicating factories.
Gets or sets the compression level (0.0, 1.0).
0.0 means the least efficient but fast compression. 1.0 means the most efficient scheme available, typically taking more time to encode but producing smaller output.
public float CompressionLevel { get; set; }
Gets or sets the TIFF compression method.
public WicTiffCompression CompressionMethod { get; set; }
Gets the current frame's GcWicBitmap.
public GcWicBitmap CurrentFrame { get; }
Gets or sets the default height of a frame, in DIPs.
public float DefaultFrameHeight { get; set; }
Gets or sets the default width of a frame, in DIPs.
public float DefaultFrameWidth { get; set; }
Gets or sets the transformation chain to be applied to the next saved frame.
public BaseTransform[] FrameTransform { get; set; }
Gets or sets a value indicating if the image is opaque.
public bool Opaque { get; set; }
Gets or sets the DPI resolution of the image.
public float Resolution { get; set; }
Writes the specified bitmap to the output stream as the next frame.
public void AppendFrame(GcWicBitmap wicBitmap)
wicBitmap GcWicBitmapApplies a license key to an instance of GcWicTiffWriter.
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 ~GcWicTiffWriter()
Saves the previous frame to the output stream and creates a new frame with default width and height.
public GcWicBitmap NewFrame()
The new frame.
Saves the previous frame to the output stream and creates a new frame with specified width and height.
public GcWicBitmap NewFrame(float width, float height)
width floatThe width of the new frame, in DIPs.
height floatThe height of the new frame, in DIPs.
The new frame.
Assigns a shared instance of the FontCache object.
public void SetFontCache(FontCache fontCache)
fontCache FontCache