TiffField

class TiffField(val offset: Int, val tag: Int, val directoryType: Int, val fieldType: FieldType<out Any>, val count: Int, val localValue: Int?, val valueOffset: Int?, val valueBytes: ByteArray, val byteOrder: ByteOrder, val sortHint: Int)

A TIFF field in a TIFF directory.

Constructors

Link copied to clipboard
constructor(offset: Int, tag: Int, directoryType: Int, fieldType: FieldType<out Any>, count: Int, localValue: Int?, valueOffset: Int?, valueBytes: ByteArray, byteOrder: ByteOrder, sortHint: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val count: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set if field has a local value.

Link copied to clipboard
val offset: Int

Offset relative to TIFF header

Link copied to clipboard

Returns the offset with padding. Because TIFF files can be as big as 4 GB we need 10 digits to present that.

Link copied to clipboard
Link copied to clipboard
val tag: Int
Link copied to clipboard

Return a proper Tag ID like 0x0100

Link copied to clipboard

TagInfo, if the tag is found in our registry.

Link copied to clipboard
val value: Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set if field has a offset pointer to its value.

Functions

Link copied to clipboard
Link copied to clipboard
fun toInt(): Int
Link copied to clipboard
Link copied to clipboard
fun toShort(): Short
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard