SaveJPG

Definition

Usage

Save the last fingerprint image as the Jpeg file that specified by FileName.

 

Ejemplo

C#

        /// <summary>
        /// Use after connect and Enroll
        /// </summary>
        /// <param name="FileName">Name of destination file</param>
        /// <param name="FilePath">Directory to save the template</param>
        private void SaveJPG_ZkFinger(string FileName = "Fingerprint.jpg", string FilePath = @"c:\Prints\")
        {
            if (!Directory.Exists(FilePath)) Directory.CreateDirectory(FilePath);
            if (!FileName.ToUpper().EndsWith(".JPG")) FileName += ".JPG";
            axZKFPEngX1.SaveJPG(FilePath + FileName);
        }

VB

        ''' <summary>
''' Use after connect and Enroll
''' </summary>
''' <param name="FileName">Name of destination file</param>
''' <param name="FilePath">Directory to save the template</param>
Private Sub SaveJPG_ZkFinger(Optional FileName As String = "Fingerprint.jpg", Optional FilePath As String = "c:\Prints\")
        If Not Directory.Exists(FilePath) Then
		Directory.CreateDirectory(FilePath)
        End If
        If Not FileName.ToUpper().EndsWith(".JPG") Then
		FileName += ".JPG"
        End If
	axZKFPEngX1.SaveJPG(FilePath & FileName)
End Sub