GdPicture.NET Reference Guide
DeleteAnchorTemplate Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : DeleteAnchorTemplate Method
The Anchor template identifier.
Releases from the memory an Anchor Template previously created by the CreateAnchorTemplate method.
Syntax
'Declaration
 
Public Sub DeleteAnchorTemplate( _
   ByVal AnchorTemplateID As IntPtr _
) 
public void DeleteAnchorTemplate( 
   IntPtr AnchorTemplateID
)
public procedure DeleteAnchorTemplate( 
    AnchorTemplateID: IntPtr
); 
public function DeleteAnchorTemplate( 
   AnchorTemplateID : IntPtr
);
public: void DeleteAnchorTemplate( 
   IntPtr AnchorTemplateID
) 
public:
void DeleteAnchorTemplate( 
   IntPtr AnchorTemplateID
) 

Parameters

AnchorTemplateID
The Anchor template identifier.
Example
Creating an anchor of a document, finding it in another document, and then deleting the anchor.
Dim oGdPictureImaging As New GdPictureImaging
'Image to set the coordinates of the anchor on
Dim MainForm As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("main.tif")
Dim Template As IntPtr
Dim NewLeft As Integer
Dim NewTop As Integer
Dim NewWidth As Integer
Dim NewHeight As Integer
Dim Accuracy As Double
'We know that the logo of Main form exists at the coordinates (20, 25,55, 75) and we will choose it to be our anchor
Template = oGdPictureImaging.CreateAnchorTemplate(MainForm, 20, 25, 35, 50)
'Image to search for Anchor in
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.tif")
oGdPictureImaging.FindAnchor(ImageID, Template, OMRMode.FavorSpeed, 10, 15, 70, 100, NewLeft, NewTop, NewWidth, NewHeight, Accuracy)
If Accuracy > 75 Then
   'Anchor has been found, you can do your processing here
End If
oGdPictureImaging.DeleteAnchorTemplate(Template)
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
CreateAnchorTemplate Method
FindAnchor Method