GdPicture.NET Reference Guide
ADRCreateTemplateFromGdPictureImage Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : ADRCreateTemplateFromGdPictureImage Method
GdPicture Image Identifier. The image from which the new template will be created.
Creates a new Document Identifier Template from a GdPicture Image.
Syntax
'Declaration
 
Public Function ADRCreateTemplateFromGdPictureImage( _
   ByVal ImageID As Integer _
) As Integer
public int ADRCreateTemplateFromGdPictureImage( 
   int ImageID
)
public function ADRCreateTemplateFromGdPictureImage( 
    ImageID: Integer
): Integer; 
public function ADRCreateTemplateFromGdPictureImage( 
   ImageID : int
) : int;
public: int ADRCreateTemplateFromGdPictureImage( 
   int ImageID
) 
public:
int ADRCreateTemplateFromGdPictureImage( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier. The image from which the new template will be created.

Return Value

The created template ID if success else, -1 if fail. check the GetStat() method to get the reason on this result.
Example
How to create document templates from a gdpicture Image
Dim TemplateID As Integer
Dim nCloserTemplate As Integer
Dim ImageID As Integer,
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("template1.tif")
'We create the first template from an image
TemplateID = oGdPictureImaging.ADRCreateTemplateFromGdPictureImage(ImageID)
If TemplateID1 = 0 Then
   MessageBox.show("Can't create TemplateID1 " + "Error number: " + Str(oGdPictureImaging.GetStat))
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
ADRCreateTemplateFromFile Method