GdPicture.NET.14
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
public string TagGetXMLPacket( 
   int ImageID
)
public function TagGetXMLPacket( 
    ImageID: Integer
): String; 
public function TagGetXMLPacket( 
   ImageID : int
) : String;
public: string* TagGetXMLPacket( 
   int ImageID
) 
public:
String^ TagGetXMLPacket( 
   int ImageID
) 

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