Skip to content

TiffFieldInfo

Namespace: ThinkGeo.Core.LibTiff

Represents a TIFF field information.

public class TiffFieldInfo

Inheritance ObjectTiffFieldInfo

Remarks:

TiffFieldInfo describes a field. It provides information about field name, type, number of values etc.

Fields

Variable

marker for variable length tags

public static short Variable;

Spp

marker for SamplesPerPixel-bound tags

public static short Spp;

Variable2

marker for integer variable length tags

public static short Variable2;

Properties

Tag

The tag described by this instance.

public TiffTag Tag { get; }

Property Value

TiffTag

ReadCount

Number of values to read when reading field information or one of TiffFieldInfo.Variable, TiffFieldInfo.Spp and TiffFieldInfo.Variable2.

public short ReadCount { get; }

Property Value

Int16

WriteCount

Number of values to write when writing field information or one of TiffFieldInfo.Variable, TiffFieldInfo.Spp and TiffFieldInfo.Variable2.

public short WriteCount { get; }

Property Value

Int16

Type

Type of the field values.

public TiffType Type { get; }

Property Value

TiffType

Bit

Index of the bit to use in "Set Fields Vector" when this instance is merged into field info collection. Take a look at FieldBit class.

public short Bit { get; }

Property Value

Int16

OkToChange

If true, then it is permissible to set the tag's value even after writing has commenced.

public bool OkToChange { get; }

Property Value

Boolean

PassCount

If true, then number of value elements should be passed to Tiff.SetField(TiffTag, Object[]) method as second parameter (right after tag type AND before values itself).

public bool PassCount { get; }

Property Value

Boolean

Name

The name (or description) of the tag this instance describes.

public string Name { get; internal set; }

Property Value

String

Constructors

TiffFieldInfo(TiffTag, Int16, Int16, TiffType, Int16, Boolean, Boolean, String)

Initializes a new instance of the TiffFieldInfo class.

public TiffFieldInfo(TiffTag tag, short readCount, short writeCount, TiffType type, short bit, bool okToChange, bool passCount, string name)

Parameters

tag TiffTag
The tag to describe.

readCount Int16
The number of values to read when reading field information or one of , and .

writeCount Int16
The number of values to write when writing field information or one of , and .

type TiffType
The type of the field value.

bit Int16
Index of the bit to use in "Set Fields Vector" when this instance is merged into field info collection. Take a look at class.

okToChange Boolean
If true, then it is permissible to set the tag's value even after writing has commenced.

passCount Boolean
If true, then number of value elements should be passed to method as second parameter (right after tag type AND before value itself).

name String
The name (description) of the tag this instance describes.

Methods

ToString()

Returns a String that represents this instance.

public string ToString()

Returns

String

        A  that represents this instance.