Class TiffStream
A stream used by the library for TIFF reading and writing.
Inheritance
Inherited Members
Namespace: BitMiracle.LibTiff.Classic
Assembly: BitMiracle.LibTiff.NET.dll
Syntax
public class TiffStream
Methods
| Improve this Doc View SourceClose(Object)
Closes the current stream.
Declaration
public virtual void Close(object clientData)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clientData | A client data (by default, an underlying stream). |
Read(Object, Byte[], Int32, Int32)
Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read.
Declaration
public virtual int Read(object clientData, byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clientData | A client data (by default, an underlying stream). |
System.Byte[] | buffer | An array of bytes. When this method returns, the
|
System.Int32 | offset | The zero-based byte offset in |
System.Int32 | count | The maximum number of bytes to be read from the current stream. |
Returns
Type | Description |
---|---|
System.Int32 | The total number of bytes read into the |
Seek(Object, Int64, SeekOrigin)
Sets the position within the current stream.
Declaration
public virtual long Seek(object clientData, long offset, SeekOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clientData | A client data (by default, an underlying stream). |
System.Int64 | offset | A byte offset relative to the |
System.IO.SeekOrigin | origin | A value of type System.IO.SeekOrigin indicating the reference point used to obtain the new position. |
Returns
Type | Description |
---|---|
System.Int64 | The new position within the current stream. |
Size(Object)
Gets the length in bytes of the stream.
Declaration
public virtual long Size(object clientData)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clientData | A client data (by default, an underlying stream). |
Returns
Type | Description |
---|---|
System.Int64 | The length of the stream in bytes. |
Write(Object, Byte[], Int32, Int32)
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Declaration
public virtual void Write(object clientData, byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Object | clientData | A client data (by default, an underlying stream). |
System.Byte[] | buffer | An array of bytes. This method copies |
System.Int32 | offset | The zero-based byte offset in |
System.Int32 | count | The number of bytes to be written to the current stream. |