GdPicture.NET Reference Guide
TagGetID Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : TagGetID Method
GdPicture Image Identifier.
Must be a value between 1 and the number of tags attached to a GdPicture image.
Returns a tag ID attached to a GdPicture image.
Syntax
'Declaration
 
Public Function TagGetID( _
   ByVal ImageID As Integer, _
   ByVal TagNo As Integer _
) As Tags
public Tags TagGetID( 
   int ImageID,
   int TagNo
)
public function TagGetID( 
    ImageID: Integer;
    TagNo: Integer
): Tags; 
public function TagGetID( 
   ImageID : int,
   TagNo : int
) : Tags;
public: Tags TagGetID( 
   int ImageID,
   int TagNo
) 
public:
Tags TagGetID( 
   int ImageID,
   int TagNo
) 

Parameters

ImageID
GdPicture Image Identifier.
TagNo
Must be a value between 1 and the number of tags attached to a GdPicture image.

Return Value

A member of the Tags enumeration.
Example
Removing the exif tag UerComment of an image, if exists.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.jpg")
Dim tagsCount As Integer = oGdPictureImaging.TagCount(ImageID)
For i As Integer = 1 To tagsCount
   If oGdPictureImaging.TagGetID(ImageID, i) = Tags.TagExifUserComment Then
      oGdPictureImaging.TagDelete(ImageID, i)
      Exit For
   End If
Next
oGdPictureImaging.SaveAsJPEG(ImageID, "output.jpg", 90)
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
oGdPictureImaging.Dispose()
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
TagCount Method