GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TagGetXMLPacket Method
GdPicture image identifier.
Example





In This Topic
TagGetXMLPacket Method (GdPictureImaging)
In This Topic
Returns the XML Packet tag (code 700 (hex 0x02BC)) of a GdPicture image as string.
Syntax
'Declaration
 
Public Function TagGetXMLPacket( _
   ByVal ImageID As Integer _
) As String
 

Parameters

ImageID
GdPicture image identifier.

Return Value

The XML tag content.
Example
Reading the xml packet tag of a jpeg and save it to a file.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", false);
 
    // Read the xml packet tag.
    string xml = gdpictureImaging.TagGetXMLPacket(imageID);
    File.WriteAllText("image.xml", xml);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also