TiffBigEndianStreamReader 类
Summary: The tiff stream for handling big endian tiff file format.
Module: aspose.imaging.fileformats.tiff.filemanagement
Full Name: aspose.imaging.fileformats.tiff.filemanagement.TiffBigEndianStreamReader
Inheritance: TiffStreamReader
Constructors
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| length | int | r | 获取读取器的长度。 |
| throw_exceptions | bool | r/w | 获取或设置一个值,指示在错误的数据处理(读取或写入流)时是否抛出异常。 |
Methods
Constructor: TiffBigEndianStreamReader(data)
TiffBigEndianStreamReader(data)
初始化一个新的 TiffBigEndianStreamReader 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 数据 | System.Byte | 字节数组数据。 |
Constructor: TiffBigEndianStreamReader(data, start_index)
TiffBigEndianStreamReader(data, start_index)
初始化一个新的 TiffBigEndianStreamReader 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 数据 | System.Byte | 字节数组数据。 |
| start_index | int | 在 data 中的起始索引。 |
Constructor: TiffBigEndianStreamReader(data, start_index, data_length)
TiffBigEndianStreamReader(data, start_index, data_length)
初始化一个新的 TiffBigEndianStreamReader 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| 数据 | System.Byte | 字节数组数据。 |
| start_index | int | 在 data 中的起始索引。 |
| data_length | int | 数据的长度。 |
Constructor: TiffBigEndianStreamReader(stream_container)
TiffBigEndianStreamReader(stream_container)
初始化一个新的 TiffBigEndianStreamReader 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| stream_container | StreamContainer | 流容器。 |
Method: read_bytes(array, array_index, position, count)
read_bytes(array, array_index, position, count)
从流中读取字节值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| array | System.Byte | 要填充的数组。 |
| array_index | int | 用于开始放置值的数组索引。 |
| position | int | 要读取的流位置。 |
| count | int | 要读取的元素计数。 |
Returns
| Type | Description |
|---|---|
| int | 字节值数组。 |
Method: read_bytes(position, count)
read_bytes(position, count)
从流中读取无符号字节值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| System.Byte | 无符号字节值数组。 |
Method: read_double(position)
read_double(position)
从流中读取单个 double 值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| float | 单个 double 值。 |
Method: read_double_array(position, count)
read_double_array(position, count)
从流中读取 double 值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| float[] | double 值数组。 |
Method: read_float(position)
read_float(position)
从流中读取单个 float 值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| float | 单个 float 值。 |
Method: read_float_array(position, count)
read_float_array(position, count)
从流中读取 float 值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| float[] | float 值数组。 |
Method: read_long(position)
read_long(position)
从流中读取无符号 long 值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个无符号短整数值。 |
Method: read_long_array(position, count)
read_long_array(position, count)
从流中读取 ulong 值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该 ulong 数组。 |
Method: read_rational(position)
read_rational(position)
从流中读取单个有理数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| TiffRational | 该有理数。 |
Method: read_rational_array(position, count)
read_rational_array(position, count)
从流中读取有理数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| TiffRational[] | 该有理值数组。 |
Method: read_s_byte(position)
read_s_byte(position)
从流中读取有符号字节数据。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| System.SByte | 该有符号字节值。 |
Method: read_s_byte_array(position, count)
read_s_byte_array(position, count)
从流中读取有符号字节值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| System.SByte | 该有符号字节值数组。 |
Method: read_s_int(position)
read_s_int(position)
从流中读取有符号整数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个有符号整数值。 |
Method: read_s_int_array(position, count)
read_s_int_array(position, count)
从流中读取有符号整数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该有符号整数值数组。 |
Method: read_s_rational(position)
read_s_rational(position)
从流中读取单个有符号有理数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| TiffSRational | 该有符号有理数。 |
Method: read_s_rational_array(position, count)
read_s_rational_array(position, count)
从流中读取有符号有理数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| TiffSRational[] | 该有符号有理值数组。 |
Method: read_s_short(position)
read_s_short(position)
从流中读取有符号短整数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个有符号短整数值。 |
Method: read_s_short_array(position, count)
read_s_short_array(position, count)
从流中读取有符号短整数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该有符号短整数值数组。 |
Method: read_u_int(position)
read_u_int(position)
从流中读取无符号整数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个无符号整数值。 |
Method: read_u_int_array(position, count)
read_u_int_array(position, count)
从流中读取无符号整数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该无符号整数值数组。 |
Method: read_u_long(position)
read_u_long(position)
从流中读取无符号 long 值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个无符号短整数值。 |
Method: read_u_long_array(position, count)
read_u_long_array(position, count)
从流中读取 ulong 值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该 ulong 数组。 |
Method: read_u_short(position)
read_u_short(position)
从流中读取无符号短整数值。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
Returns
| Type | Description |
|---|---|
| int | 一个无符号短整数值。 |
Method: read_u_short_array(position, count)
read_u_short_array(position, count)
从流中读取无符号整数值数组。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| position | int | 读取的位置。 |
| count | int | 元素计数。 |
Returns
| Type | Description |
|---|---|
| int[] | 该无符号整数值数组。 |
Method: to_stream_container(start_position)
to_stream_container(start_position)
将底层数据转换为流容器。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| start_position | int | 该用于开始转换的起始位置。 |
Returns
| Type | Description |
|---|---|
| StreamContainer | 带有转换后数据的 StreamContainer。 |