Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK ActiveX Reference Guide » Extraction methods » ConvertTemplate

ConvertTemplate

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.

 

Parameters

[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.
[out] The size in bytes of the converted template.

[in] context

Context in which the extraction will be performed.

[in] format

The template format to be used.

Declaration

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;