ly.img.android.pesdk.backend.exif / Exify / setTagValue

setTagValue

fun setTagValue(tag: Exify.TAG, val: java.lang.Object): 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.

Parameters

tag - Exify.TAG: a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH}.

val - java.lang.Object: the value to set.

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

fun setTagValue(tagId: int, val: java.lang.Object): 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.

Parameters

tagId - int: a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH}.

val - java.lang.Object: the value to set.

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

fun setTagValue(tagId: int, ifdId: int, val: java.lang.Object): 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.

Parameters

tagId - int: a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH}.

ifdId - int: the IFD that the ExifTag is in.

val - java.lang.Object: the value to set.

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

See Also
#setTagValue