buildTag

Creates a tag for a defined tag constant in the tag's default IFD.

Return

an ExifTag object.

Parameters

tag

a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH} .

val

the tag's value.

open fun buildTag(tag: Exify.TAG, val: Any): ExifTagInfo

Creates a tag for a defined tag constant in a given IFD if that IFD is allowed for the ExifTagKey. This method will fail anytime the appropriate for this tag's datatype would fail.

Return

an ExifTag object or null if one could not be constructed.

See also

#buildTag

Parameters

ifdId

the IFD that the tag should be in.

tagId

a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH} .

val

the value of the tag to set.

open fun buildTag(tagId: Int, ifdId: Int, val: Any): ExifTagInfo