SetField sets the value of a tag or pseudo-tag in the current directory associated with the open TIFF file/stream. To set the value of a field the file/stream must have been previously opened for writing with Open(string, string) or ClientOpen(string, string, object, BitMiracle.LibTiff.Classic.TiffStream); pseudo-tags can be set whether the file was opened for reading or writing. The tag is identified by tag. The type and number of values in value is dependent on the tag being set. You may want to consult "Well-known tags and their value(s) data types" to become familiar with exact data types and calling conventions required for each tag supported by the library.
A pseudo-tag is a parameter that is used to control the operation of the library but whose value is not read or written to the underlying file.
The field will be written to the file when/if the directory structure is updated.
public SetField ( TiffTag tag ) : bool | ||
tag | TiffTag | The tag. |
return | bool |