Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TagSetValueString Method
GdPicture image identifier.
A member of the Tags enumeration.
Type of the tag to write. A member of the TagType enumeration which can be: TagType.TagTypeASCII, TagType.TagTypeByte, TagType.TagTypeLong, TagType.TagTypeShort, TagType.TagTypeSLong, TagType.TagTypeRational or TagType.TagTypeSRational.

Please ensure that you provide a correct type of the tag. For further assistance, please refer to the CIPA DC-008-2016: Exchangeable image file format for digital still cameras: Exif Version 2.31.

The formatted tag value. Please follow the formats below for individual tag types:





In This Topic
    TagSetValueString Method (GdPictureImaging)
    In This Topic
    Writes a tag from data stored within formatted string.
    Syntax
    'Declaration
     
    
    Public Function TagSetValueString( _
       ByVal ImageID As Integer, _
       ByVal TagID As Tags, _
       ByVal TagType As TagType, _
       ByVal TagData As String _
    ) As GdPictureStatus
    public GdPictureStatus TagSetValueString( 
       int ImageID,
       Tags TagID,
       TagType TagType,
       string TagData
    )
    public function TagSetValueString( 
        ImageID: Integer;
        TagID: Tags;
        TagType: TagType;
        TagData: String
    ): GdPictureStatus; 
    public function TagSetValueString( 
       ImageID : int,
       TagID : Tags,
       TagType : TagType,
       TagData : String
    ) : GdPictureStatus;
    public: GdPictureStatus TagSetValueString( 
       int ImageID,
       Tags TagID,
       TagType TagType,
       string* TagData
    ) 
    public:
    GdPictureStatus TagSetValueString( 
       int ImageID,
       Tags TagID,
       TagType TagType,
       String^ TagData
    ) 

    Parameters

    ImageID
    GdPicture image identifier.
    TagID
    A member of the Tags enumeration.
    TagType
    Type of the tag to write. A member of the TagType enumeration which can be: TagType.TagTypeASCII, TagType.TagTypeByte, TagType.TagTypeLong, TagType.TagTypeShort, TagType.TagTypeSLong, TagType.TagTypeRational or TagType.TagTypeSRational.

    Please ensure that you provide a correct type of the tag. For further assistance, please refer to the CIPA DC-008-2016: Exchangeable image file format for digital still cameras: Exif Version 2.31.

    TagData
    The formatted tag value. Please follow the formats below for individual tag types:
    • BYTE tags will have this mask: "#,#,...,#".[#] : A component as unsigned 8-bit integer with a value between 0 and 255.[,] : A component delimiter.
    • SHORT tags will have this mask: "#,#,...,#".[#] : A component as unsigned 16-bit integer with a value between 0 and 65535.[,] : A component delimiter.
    • Integer tags will have this mask: "#,#,...,#".[#] : A component as unsigned 32-bit integer with a value between 0 and 4294967295.[,] : A component delimiter.
    • SInteger tags will have this mask: "#,#,...,#".[#] : A component as signed 32-bit integer with a value between -2147483648 and 2147483647.[,] : A component delimiter.
    • 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.
    • SRATIONAL 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.

    Return Value

    A member of the GdPictureStatus enumeration.
    See Also