GdPicture.NET Reference Guide
TagDelete Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : TagDelete Method
GdPicture Image Identifier.
Must be a value between 1 and the number of tags attached to a GdPicture image.
Deletes a tag attached to a GdPicture image.
Syntax
'Declaration
 
Public Function TagDelete( _
   ByVal ImageID As Integer, _
   ByVal TagNo As Integer _
) As GdPictureStatus
public GdPictureStatus TagDelete( 
   int ImageID,
   int TagNo
)
public function TagDelete( 
    ImageID: Integer;
    TagNo: Integer
): GdPictureStatus; 
public function TagDelete( 
   ImageID : int,
   TagNo : int
) : GdPictureStatus;
public: GdPictureStatus TagDelete( 
   int ImageID,
   int TagNo
) 
public:
GdPictureStatus TagDelete( 
   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 GdPictureStatus 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