Skip to content

TiffTagMethods

Namespace: ThinkGeo.Core.LibTiff

Tiff tag methods.

public class TiffTagMethods

Inheritance ObjectTiffTagMethods

Constructors

TiffTagMethods()

public TiffTagMethods()

Methods

SetField(Tiff, TiffTag, FieldValue[])

Sets the value(s) of a tag in a TIFF file/stream open for writing.

public bool SetField(Tiff tif, TiffTag tag, FieldValue[] value)

Parameters

tif Tiff
An instance of the class.

tag TiffTag
The tag.

value FieldValue[]
The tag value(s).

Returns

Boolean
true if tag value(s) were set successfully; otherwise, false.

GetField(Tiff, TiffTag)

Gets the value(s) of a tag in an open TIFF file.

public FieldValue[] GetField(Tiff tif, TiffTag tag)

Parameters

tif Tiff
An instance of the class.

tag TiffTag
The tag.

Returns

FieldValue[]
The value(s) of a tag in an open TIFF file/stream as array of objects or null if there is no such tag set.

PrintDir(Tiff, Stream, TiffPrintFlags)

Prints formatted description of the contents of the current directory to the specified stream using specified print (formatting) options.

public void PrintDir(Tiff tif, Stream stream, TiffPrintFlags flags)

Parameters

tif Tiff
An instance of the class.

stream Stream
The stream to print to.

flags TiffPrintFlags
The print (formatting) options.