
**Summary:** The Tiff stream writer.

**Module:** [aspose.imaging.fileformats.tiff.filemanagement](/imaging/python-net/aspose.imaging.fileformats.tiff.filemanagement/)

**Full Name:** aspose.imaging.fileformats.tiff.filemanagement.TiffStreamWriter

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [TiffStreamWriter(writer)](#TiffStreamWriter_writer_1) | Initializes a new instance of the [TiffStreamWriter](/imaging/python-net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| position | int | r/w | Gets or sets the stream position. |
| sync_root | System.Object | r | Gets an object that can be used to synchronize access to the synchronized resource. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [write(data)](#write_data_1) | Writes the specified data. |
| [write(data)](#write_data_2) | Writes the specified data. |
| [write(data)](#write_data_3) | Writes the specified data. |
| [write(data)](#write_data_4) | Writes the specified data. |
| [write(data)](#write_data_5) | Writes the specified data. |
| [write(data)](#write_data_6) | Writes the specified data. |
| [write(data)](#write_data_7) | Writes the specified data. |
| [write(data)](#write_data_8) | Writes the specified data. |
| [write(data)](#write_data_9) | Writes the specified data. |
| [write(data)](#write_data_10) | Writes the specified data. |
| [write(data)](#write_data_11) | Writes the specified data. |
| [write(data)](#write_data_12) | Writes the specified data. |
| [write(data)](#write_data_13) | Writes the specified data. |
| [write(data)](#write_data_14) | Writes the specified data. |
| [write(data)](#write_data_15) | Writes the specified data. |
| [write(data)](#write_data_16) | Writes the specified data. |
| [write(data)](#write_data_17) | Writes the specified data. |
| [write(data)](#write_data_18) | Writes the specified data. |
| [write(data)](#write_data_19) | Writes the specified data. |
| [write(data)](#write_data_20) | Writes the specified data. |
| [write(data)](#write_data_21) | Writes the specified data. |
| [write(data)](#write_data_22) | Writes the specified data. |
| [write(data)](#write_data_23) | Writes the specified data. |
| [write(data)](#write_data_24) | Writes the specified data. |
| [write(data, offset, data_length)](#write_data_offset_data_length_25) | Writes the specified data. |
| [write_byte(data)](#write_byte_data_26) | Writes the specified data. |
| [write_bytes(data)](#write_bytes_data_27) | Writes the specified data. |
| [write_double(data)](#write_double_data_28) | Writes a single double value to the stream. |
| [write_doubles(data)](#write_doubles_data_29) | Writes an array of double values to the stream. |
| [write_float(data)](#write_float_data_30) | Writes a single float value to the stream. |
| [write_floats(data)](#write_floats_data_31) | Writes an array of float values to the stream. |
| [write_int(data)](#write_int_data_32) | Writes an array of integer values to the stream. |
| [write_ints(data)](#write_ints_data_33) | Writes an array of integer values to the stream. |
| [write_long(data)](#write_long_data_34) | Writes an array of signed long values to the stream. |
| [write_longs(data)](#write_longs_data_35) | Writes an array of signed long values to the stream. |
| [write_rational(data)](#write_rational_data_36) | Writes a single rational number value to the stream. |
| [write_rationals(data)](#write_rationals_data_37) | Writes an array of unsigned rational values to the stream. |
| [write_s_byte(data)](#write_s_byte_data_38) | Writes a single signed byte value to the stream. |
| [write_s_bytes(data)](#write_s_bytes_data_39) | Writes an array of signed byte values to the stream. |
| [write_s_rational(data)](#write_s_rational_data_40) | Writes a single signed rational number value to the stream. |
| [write_s_rationals(data)](#write_s_rationals_data_41) | Writes an array of signed rational values to the stream. |
| [write_short(data)](#write_short_data_42) | Writes a single short value to the stream. |
| [write_shorts(data)](#write_shorts_data_43) | Writes an array of short values to the stream. |
| [write_uint(data)](#write_uint_data_44) | Writes a single unsigned integer value to the stream. |
| [write_uints(data)](#write_uints_data_45) | Writes an array of unsigned integer values to the stream. |
| [write_ulong(data)](#write_ulong_data_46) | Writes an array of unsigned long values to the stream. |
| [write_ulongs(data)](#write_ulongs_data_47) | Writes an array of unsigned long values to the stream. |
| [write_ushort(data)](#write_ushort_data_48) | Writes a single unsigned short value to the stream. |
| [write_ushorts(data)](#write_ushorts_data_49) | Writes an array of unsigned short values to the stream. |


### Constructor: TiffStreamWriter(writer) {#TiffStreamWriter_writer_1}


```
 TiffStreamWriter(writer) 
```

Initializes a new instance of the [TiffStreamWriter](/imaging/python-net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| writer | [StreamContainer](/imaging/python-net/aspose.imaging/streamcontainer/) | The stream writer. |

### Method: write(data) {#write_data_1}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.Byte | The data to write. |

### Method: write(data) {#write_data_2}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float | The data to write. |

### Method: write(data) {#write_data_3}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float[] | The data to write. |

### Method: write(data) {#write_data_4}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float | The data to write. |

### Method: write(data) {#write_data_5}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float[] | The data to write. |

### Method: write(data) {#write_data_6}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffRational](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffrational/) | The data to write. |

### Method: write(data) {#write_data_7}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffSRational](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffsrational/) | The data to write. |

### Method: write(data) {#write_data_8}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffRational[]](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffrational/) | The data to write. |

### Method: write(data) {#write_data_9}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffSRational[]](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffsrational/) | The data to write. |

### Method: write(data) {#write_data_10}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.SByte | The data to write. |

### Method: write(data) {#write_data_11}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.SByte | The data to write. |

### Method: write(data) {#write_data_12}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data) {#write_data_13}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_14}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data) {#write_data_15}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_16}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.Byte | The data to write. |

### Method: write(data) {#write_data_17}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_18}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data) {#write_data_19}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_20}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data) {#write_data_21}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_22}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data) {#write_data_23}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The data to write. |

### Method: write(data) {#write_data_24}


```
 write(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The data to write. |

### Method: write(data, offset, data_length) {#write_data_offset_data_length_25}


```
 write(data, offset, data_length) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.Byte | The data to write. |
| offset | int | The data offset. |
| data_length | int | Length of the data to writer. |

### Method: write_byte(data) {#write_byte_data_26}


```
 write_byte(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.Byte | The data to write. |

### Method: write_bytes(data) {#write_bytes_data_27}


```
 write_bytes(data) 
```

Writes the specified data.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.Byte | The data to write. |

### Method: write_double(data) {#write_double_data_28}


```
 write_double(data) 
```

Writes a single double value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float | The value to write. |

### Method: write_doubles(data) {#write_doubles_data_29}


```
 write_doubles(data) 
```

Writes an array of double values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float[] | The array to write. |

### Method: write_float(data) {#write_float_data_30}


```
 write_float(data) 
```

Writes a single float value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float | The value to write. |

### Method: write_floats(data) {#write_floats_data_31}


```
 write_floats(data) 
```

Writes an array of float values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | float[] | The array to write. |

### Method: write_int(data) {#write_int_data_32}


```
 write_int(data) 
```

Writes an array of integer values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The array to write. |

### Method: write_ints(data) {#write_ints_data_33}


```
 write_ints(data) 
```

Writes an array of integer values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

### Method: write_long(data) {#write_long_data_34}


```
 write_long(data) 
```

Writes an array of signed long values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The array to write. |

### Method: write_longs(data) {#write_longs_data_35}


```
 write_longs(data) 
```

Writes an array of signed long values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

### Method: write_rational(data) {#write_rational_data_36}


```
 write_rational(data) 
```

Writes a single rational number value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffRational](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffrational/) | The value to write. |

### Method: write_rationals(data) {#write_rationals_data_37}


```
 write_rationals(data) 
```

Writes an array of unsigned rational values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffRational[]](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffrational/) | The array to write. |

### Method: write_s_byte(data) {#write_s_byte_data_38}


```
 write_s_byte(data) 
```

Writes a single signed byte value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.SByte | The value to write. |

### Method: write_s_bytes(data) {#write_s_bytes_data_39}


```
 write_s_bytes(data) 
```

Writes an array of signed byte values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | System.SByte | The array to write. |

### Method: write_s_rational(data) {#write_s_rational_data_40}


```
 write_s_rational(data) 
```

Writes a single signed rational number value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffSRational](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffsrational/) | The value to write. |

### Method: write_s_rationals(data) {#write_s_rationals_data_41}


```
 write_s_rationals(data) 
```

Writes an array of signed rational values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | [TiffSRational[]](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffsrational/) | The array to write. |

### Method: write_short(data) {#write_short_data_42}


```
 write_short(data) 
```

Writes a single short value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The value to write. |

### Method: write_shorts(data) {#write_shorts_data_43}


```
 write_shorts(data) 
```

Writes an array of short values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

### Method: write_uint(data) {#write_uint_data_44}


```
 write_uint(data) 
```

Writes a single unsigned integer value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The value to write. |

### Method: write_uints(data) {#write_uints_data_45}


```
 write_uints(data) 
```

Writes an array of unsigned integer values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

### Method: write_ulong(data) {#write_ulong_data_46}


```
 write_ulong(data) 
```

Writes an array of unsigned long values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The array to write. |

### Method: write_ulongs(data) {#write_ulongs_data_47}


```
 write_ulongs(data) 
```

Writes an array of unsigned long values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

### Method: write_ushort(data) {#write_ushort_data_48}


```
 write_ushort(data) 
```

Writes a single unsigned short value to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int | The value to write. |

### Method: write_ushorts(data) {#write_ushorts_data_49}


```
 write_ushorts(data) 
```

Writes an array of unsigned short values to the stream.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| data | int[] | The array to write. |

