setTagValue

Sets the value of an ExifTag if it exists it's default IFD. The value must be the correct type and length for that ExifExifTagKey.

Return

true if success, false if the ExifTag doesn't exist or the value is the wrong type/length.

Parameters

tag

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

val

the value to set.

open fun setTagValue(tag: Exify.TAG, val: Any): Boolean

Sets the value of an ExifTag if it exists it's default IFD. The value must be the correct type and length for that ExifExifTagKey.

Return

true if success, false if the ExifTag doesn't exist or the value is the wrong type/length.

Parameters

tagId

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

val

the value to set.

open fun setTagValue(tagId: Int, val: Any): Boolean

Sets the value of an ExifTag if it exists in the given IFD. The value must be the correct type and length for that ExifExifTagKey.

Return

true if success, false if the ExifTag doesn't exist or the value is the wrong type/length.

See also

#setTagValue

Parameters

ifdId

the IFD that the ExifTag is in.

tagId

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

val

the value to set.

open fun setTagValue(tagId: Int, ifdId: Int, val: Any): Boolean