GdPicture.NET Reference Guide
ADRCreateTemplateFromFile Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : ADRCreateTemplateFromFile Method
The path of the image from which the new template will be created. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Creates a new Document Identifier Template from an image file.
Syntax
'Declaration
 
Public Function ADRCreateTemplateFromFile( _
   ByVal FilePath As String _
) As Integer
public int ADRCreateTemplateFromFile( 
   string FilePath
)
public function ADRCreateTemplateFromFile( 
    FilePath: String
): Integer; 
public function ADRCreateTemplateFromFile( 
   FilePath : String
) : int;
public: int ADRCreateTemplateFromFile( 
   string* FilePath
) 
public:
int ADRCreateTemplateFromFile( 
   String^ FilePath
) 

Parameters

FilePath
The path of the image from which the new template will be created. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.

Return Value

The created template ID if success else, -1 if fail. check the GetStat() method to get the reason on this result.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members