コード例 #1
0
 /// <summary>
 /// 读最新地址信息
 /// </summary>
 /// <param name="fileDirectory">文件输出目录</param>
 /// <returns></returns>
 protected override IDCardActionResult ReadNewAddressInfoInternal(string fileDirectory)
 {
     using (var interopHandler = GetInteropReadHandler())
     {
         return(interopHandler.ExecIDCardInteropReadAction(
                    (port) => StandardIDCardInteropAction.ReadContentPath(fileDirectory, (int)StandardIDCardReadActiveType.NewAddress)));
     }
 }
コード例 #2
0
        /// <summary>
        /// 解析照片信息
        /// </summary>
        /// <param name="fileDirectory">照片信息所属目录</param>
        /// <returns>BMP照片路径</returns>
        protected override IDCardActionResult ParsePhotoInfoInternal(string fileDirectory)
        {
            var photoFilePath = IOHelper.GetFilePath(fileDirectory, DefaultPhotoFileName);

            var interopHandler = GetInteropHandler();

            return(interopHandler.ExecIDCardInteropAction((port) => StandardIDCardInteropAction.GetPhoto(photoFilePath)));
        }