Class TiffStreamWriter

Class TiffStreamWriter

Namespace: Aspose.Imaging.FileFormats.Tiff.FileManagement
Assembly: Aspose.Imaging.dll (25.7.0)

The Tiff stream writer.

public class TiffStreamWriter
   {
   }

Inheritance

object #=zJTi30kiIZonz74JKOG50HAq91GGORALRWnMqQoeiRunK4wtrE10IiR4= TiffStreamWriter

Derived

BigTiffWriter , TiffBigEndianStreamWriter

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

TiffStreamWriter(StreamContainer)

Initializes a new instance of the Aspose.Imaging.FileFormats.Tiff.FileManagement.TiffStreamWriter class.

public TiffStreamWriter(StreamContainer writer)
   {
      _writer = writer;
   }
This is a simple constructor for a `TiffStreamWriter` class, which takes a `StreamContainer` as an argument. The indentation of the opening brace and the closing brace has been corrected to adhere to C# conventions.

Parameters

writer StreamContainer

The stream writer.

Properties

Position

Gets or sets the stream position.

public long Position
    {
        get;
        set;
    }

Property Value

long

SyncRoot

Gets an object that can be used to synchronize access to the synchronized resource.

public object SyncRoot
   {
      get;
   }

Property Value

object

Methods

ProcessWriteDataDouble(double[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataDouble(double[] data, byte[] dest)
   {
   }

Parameters

data double []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataFloat(float[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataFloat(
      float[] data,
      byte[] dest)
   {
   }

Parameters

data float []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataInt(int[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataInt(
      int[] data,
      byte[] dest)
   {
   }

Parameters

data int []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataLong(long[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataLong(
      long[] data,
      byte[] dest)
   {
   }

Parameters

data long []

The data to convert.

dest byte []

The destination array containing the converted data.

ProcessWriteDataRational(TiffRational[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataRational(
      TiffRational[] data,
      byte[] dest)
   {
   }

Parameters

data TiffRational []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataShort(short[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataShort(
       short[] data,
       byte[] dest)
   {
   }

Parameters

data short []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataUInt(uint[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataUInt(
       uint[] data,
       byte[] dest)
   {
   }

Parameters

data uint []

The data to convert.

dest byte []

The destination array containing the converted data..

ProcessWriteDataULong(ulong[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataULong(
       ulong[] data,
       byte[] dest)
   {
   }

Parameters

data ulong []

The data to convert.

dest byte []

The destination array containing the converted data.

ProcessWriteDataUShort(ushort[], byte[])

Performs a conversion from the specific data type to the raw bytes.

protected virtual void ProcessWriteDataUShort(ushort[] data, byte[] dest)
{
}

Parameters

data ushort []

The data to convert.

dest byte []

The destination array containing the converted data..

Write(MemoryStream)

Writes the specified data.

public void Write(MemoryStream stream)
   {
   }

Parameters

stream MemoryStream

The stream.

Write(byte[], int, int)

Writes the specified data.

public void Write(byte[] data, int offset, int dataLength)
   {
   }

Parameters

data byte []

The data to write.

offset int

The data offset.

dataLength int

Length of the data to writer.

Write(byte[])

Writes the specified data.

public void Write(byte[] data)
   {
   }

Parameters

data byte []

The data to write.

Write(double)

Writes a single double value to the stream.

public void Write(double data)
   {
   }

Parameters

data double

The value to write.

Write(double[])

Writes an array of double values to the stream.

public void Write(double[] data)
   {
   }

Parameters

data double []

The array to write.

Write(float)

Writes a single float value to the stream.

public void Write(float data)
{
}

Parameters

data float

The value to write.

Write(float[])

Writes an array of float values to the stream.

public void Write(float[] data)
{
}
The given input code is already following standard C# conventions, so no reformatting is required in this specific case. However, if the code was not properly indented or spaced, or lacked readability, this formatter would ensure it adheres to C# coding standards while preserving any existing comments and names of variables, methods, classes, or types.

Parameters

data float []

The array to write.

Write(TiffRational)

Writes a single rational number value to the stream.

public void Write(TiffRational data)
   {
   }

Parameters

data TiffRational

The value to write.

Write(TiffSRational)

Writes a single signed rational number value to the stream.

public void Write(TiffSRational data)
   {
   }

Parameters

data TiffSRational

The value to write.

Write(TiffRational[])

Writes an array of unsigned rational values to the stream.

public void Write(TiffRational[] data)
   {
   }

Parameters

data TiffRational []

The array to write.

Write(TiffSRational[])

Writes an array of signed rational values to the stream.

public void Write(TiffSRational[] data)
   {
   }

Parameters

data TiffSRational []

The array to write.

Write(sbyte)

Writes a single signed byte value to the stream.

public void Write(sbyte data)
   {
   }

Parameters

data sbyte

The value to write.

Write(sbyte[])

Writes an array of signed byte values to the stream.

public void Write(sbyte[] data)
   {
   }

Parameters

data sbyte []

The array to write.

Write(int[])

Writes an array of integer values to the stream.

public void Write(int[] data)
   {
   }

Parameters

data int []

The array to write.

Write(short)

Writes a single short value to the stream.

public void Write(short data)
   {
   }

Parameters

data short

The value to write.

Write(short[])

Writes an array of short values to the stream.

public void Write(short[] data)
   {
   }

Parameters

data short []

The array to write.

Write(int)

Writes a single integer value to the stream.

public void Write(int data)
   {
   }

Parameters

data int

The value to write.

Write(byte)

Writes a single byte value to the stream.

public void Write(byte data)
   {
   }

Parameters

data byte

The value to write.

Write(uint)

Writes a single unsigned integer value to the stream.

public void Write(uint data)
   {
   }

Parameters

data uint

The value to write.

Write(uint[])

Writes an array of unsigned integer values to the stream.

public void Write(uint[] data)
   {
   }
I have only properly indented and added line breaks to make it more readable according to standard C# conventions. No other modifications have been made as per your requirements.

Parameters

data uint []

The array to write.

Write(ushort)

Writes a single unsigned short value to the stream.

public void Write(ushort data)
{
}

Parameters

data ushort

The value to write.

Write(ushort[])

Writes an array of unsigned short values to the stream.

public void Write(ushort[] data)
{
}

Parameters

data ushort []

The array to write.

Write(long)

Writes an array of signed long values to the stream.

public void Write(long data)
   {
   }

Parameters

data long

The array to write.

Write(long[])

Writes an array of signed long values to the stream.

public void Write(long[] data)
{
}

Parameters

data long []

The array to write.

Write(ulong)

Writes an array of unsigned long values to the stream.

public void Write(ulong data)
{
}

Parameters

data ulong

The array to write.

Write(ulong[])

Writes an array of unsigned long values to the stream.

public void Write(ulong[] data)
   {
   }

Parameters

data ulong []

The array to write.

WriteHeader()

Writes Tiff header.

protected virtual void WriteHeader()
   {
   }
 English