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  As Integer _
) As String
             
        
            
            public string TagGetXMLPacket( 
   int 
)
             
        
            
            public function TagGetXMLPacket( 
    : Integer
): String; 
             
        
            
            public function TagGetXMLPacket( 
    : int
) : String;
             
        
            
            public: string* TagGetXMLPacket( 
   int 
) 
             
        
            
            public:
String^ TagGetXMLPacket( 
   int 
) 
             
        
             
        
            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);
}
	 
	
 
 
            
            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