CaptureImage

Definition

Usage

Capture the image of the fingerprint on the fingerprint sensor.

Parameter

Whether to capture the entire image. Return True if the device captures the whole image. Return False if the device captures only the fingerprint.

Width of the image to be captured

Height of the image to be captured

Binary fingerprint image

Storage name of the specified fingerprint image to be captured (including the storage path)

Return Value

Return True if it is successful, or return False.

Related Function

None

 

Ejemplo

C#

private static int captureImage(string ipAddr, int port, bool isFullImage, ref int width, ref int height, ref byte fullImage, string imageFile)
        {
int idwErrorCode = 0;
//Create Standalone SDK class dynamicly.
            zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
if (axCZKEM1.Connect_Net(ipAddr, 4370))
            {
if (axCZKEM1.CaptureImage(isFullImage, ref width, ref height, ref fullImage, imageFile))
                {
                    MessageBox.Show("Operation Success!");
                }
else
                {
                    axCZKEM1.GetLastError(ref idwErrorCode);
                    MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
                }
            }
else
            {
                axCZKEM1.GetLastError(ref idwErrorCode);
            }
            axCZKEM1.Disconnect();
return idwErrorCode;
        }

VB

Private Sub captureImage(ipAddr As String, port As Int32, IsFullImage As Boolean, ByRef width As Int32, ByRef height As Int32, ByRef fullImage As Byte, imageFile As String)
'Create Standalone SDK class dynamicly.
Dim axCZKEM1 As New zkemkeeper.CZKEM
Dim iMachineNumber As Integer
Dim idwErrorCode As Integer
If axCZKEM1.Connect_Net(ipAddr, port) = True Then
If axCZKEM1.CaptureImage(IsFullImage, width, height, fullImage, imageFile) = True Then
                MsgBox("Operation Success!")
Else
                axCZKEM1.GetLastError(idwErrorCode)
                MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error")
End If
Else
            axCZKEM1.GetLastError(idwErrorCode)
End If
        axCZKEM1.Disconnect()
End Sub