Show / Hide Table of Contents

Class TiffStream

A stream used by the library for TIFF reading and writing.

Inheritance
System.Object
TiffStream
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BitMiracle.LibTiff.Classic
Assembly: BitMiracle.LibTiff.NET.dll
Syntax
public class TiffStream

Methods

| Improve this Doc View Source

Close(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).

| Improve this Doc View Source

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 buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.

System.Int32 offset

The zero-based byte offset in buffer at which to begin storing the data read from the current stream.

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 buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.

| Improve this Doc View Source

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 origin parameter.

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 count bytes from buffer to the current stream.

System.Int32 offset

The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

System.Int32 count

The number of bytes to be written to the current stream.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX