ExifTagSetValueString Method

See Also     Examples     Applies To

Writes an Exif tag from data stored within formated string.

Syntax

object.ExifTagSetValueString (nTagID, nTagType, sTagData)

The ExifTagSetValueString syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nTagID Required. Long. Tag constant. The tag to write.
nTagType Required. Long. Type of the tag to write.
Can be:
1: Type Byte
2: Type ASCII
3: Type Short
4: Type Long
5: Type Rational
7: Type Undefined
9: Type SLONG
10: Type SRational
You can check the exif specifications to use the good type of tag.
The EXIF specifications can be found at: http://www.exif.org
sTagData Required. String. The formated tag value.
Notes for BYTE tags:
BYTE tags will have this mask: "#,#,...,#".
[#] : A component as unsigned 8-bit integer with a value between 0 and 255.
[,] : A component delimiter.


Notes for SHORT tags:
SHORT tags will have this mask: "#,#,...,#".
[#] : A component as unsigned 16-bit integer with a value between 0 and 65535.
[,] : A component delimiter.


Notes for LONG tags:
LONG tags will have this mask: "#,#,...,#".
[#] : A component as unsigned 32-bit integer with a value between 0 and 4294967295.
[,] : A component delimiter.


Notes for SLONG tags:
SLONG tags will have this mask: "#,#,...,#".
[#] : A component as signed 32-bit integer with a value between -2147483648 and 2147483647.
[,] : A component delimiter.


Notes for RATIONAL tags:
RATIONAL tags will have this mask: "#/#,#/#,...,#/#".
[#/#] : A component will consist of two unsigned 32-bit integers denoting the enumerator and denominator. Each integer will have a value between 0 and 4294967295.
[,] : A component delimiter.


Notes for SRATIONAL tags:
RATIONAL tags will have this mask: "#/#,#/#,...,#/#".
[#/#] : A component will consist of two signed 32-bit integers denoting the enumerator and denominator. Each integer will have a value between -2147483648 and 2147483647.
[,] : A component delimiter.



Returns

Long. GdPictureStatus

Remarks

Available for EXIF TAGs, Image property ID Tags, Extra TAGs (Like Adobe Image Information tags etc.), Thumbnail related TAGs and Gps TAGs

Category

Metadata Functions (EXIF, IPTC, Extra, Thumbnail, GPS...)

Visual Basic Sample


'Writes X & Y resolution Tags (300 DPI)
Call object.ExifTagSetValueString(TagXResolution, TypeRational, "300/1")
Call object.ExifTagSetValueString(TagYResolution, TypeRational, "300/1")

'Write SoftwareUsed tag
Call object.ExifTagSetValueString(TagSoftwareUsed, TagTypeASCII, "My Software")






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.