Creates a copy of the specified template, serialized in the specified format.
| Prerequisites | The Fingerprint SDK library must have been previously initialized. The template array must be already allocated. The recommended size is GR_MAX_SIZE_TEMPLATE bytes. |
| Return | On success, GR_OK is returned.On failure, the appropriate error code is returned. |
| [in] tpt |
The template to convert. |
| [out] newTpt |
The converted template. |
| [in,out] newTptSize |
[in] The maximum size in bytes of the byte array supplied. |
| [in] context |
Context in which the extraction will be performed. |
| [in] format |
The template format to be used. |
C++ .NET
int ConvertTemplate (ref byte[] tpt, ref byte[] newTpt, ref int newTptSize, int context, int format);
C#
int ConvertTemplate (ref Array tpt, ref Array newTpt, ref int newTptSize, int context, int format);
VB6
Function ConvertTemplate (ByRef tpt() As Byte, ByRef newTpt() As Byte, ByRef newTptSize As Long, ByVal context As Long, ByVal format As Long) As Long
VB .NET
Function ConvertTemplate (ByRef tpt As Array, ByRef newTpt As Array, ByRef newTptSize As Integer, ByVal context As Integer, ByVal format As Integer) As Integer
Delphi
function ConvertTemplate(var tpt: PSafeArray; var newTpt: PSafeArray; var newTptSize: integer; context: integer; format: integer): integer;