FPTempConvertNew

Definition

Usage

Convert a Biokey fingerprint template into an offline fingerprint template. The only difference

between this function and FPTempConvertNewStr is the data format.

Parameter

Offline fingerprint template to be converted into

Converted Biokey fingerprint template

Size of the converted Biokey fingerprint template

Return Value

Return True if it is successful, or return False.

Related Function

FPTempConvertNewStr, FPTempConvert, FPTempConvertStr

 

Ejemplo

C#

        /// <summary>
        /// Convert a Biokey fingerprint template into an offline fingerprint template.The only difference between 
        /// this function and FPTempConvertNewStr is the data format. 
        /// </summary>
        /// <param name="TmpData1">Offline fingerprint template to be converted into </param>
        /// <param name="TmpData2">Converted Biokey fingerprint template</param>
        /// <param name="Size">Size of the converted Biokey fingerprint template</param>
        /// <param name="IP"> Ip of device </param>
        /// <param name="Port"> Port of Device </param>
        private void FPTempConvertNew(byte TmpData1, byte TmpData2, int Size, string IP = "10.0.0.44", int Port = 4370)
        {
        //Create Standalone SDK class dynamicly.
            zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
            axCZKEM1.Connect_Net(IP, Port);
        int idwErrorCode = 0;
        if (axCZKEM1.FPTempConvertNew(TmpData1, TmpData2, ref Size))
            {
                MessageBox.Show("FPTempConvertNew!", "Success");
            }
        else
            {
                axCZKEM1.GetLastError(ref idwErrorCode);
                MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
            }
        }

VB

        ''' <summary>
        ''' Convert a Biokey fingerprint template into an offline fingerprint template.The only difference between 
        ''' this function and FPTempConvertNewStr is the data format. 
        ''' </summary>
        ''' <param name="TmpData1">Offline fingerprint template to be converted into </param>
        ''' <param name="TmpData2">Converted Biokey fingerprint template</param>
        ''' <param name="Size">Size of the converted Biokey fingerprint template</param>
        ''' <param name="IP"> Ip of device </param>
        ''' <param name="Port"> Port of Device </param>
        Private Sub FPTempConvertNew(ByVal TmpData1 As Byte, ByVal TmpData2 As Byte, ByVal Size As Integer, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370)
        'Create Standalone SDK class dynamicly.
        Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass()
        axCZKEM1.Connect_Net(IP, Port)
        Dim idwErrorCode As Integer = 0
        If axCZKEM1.FPTempConvertNew(TmpData1, TmpData2, Size) Then
            MessageBox.Show("FPTempConvertNew!", "Success")
        Else
            axCZKEM1.GetLastError(idwErrorCode)
            MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error")
        End If
        End Sub