Exemplo n.º 1
0
 public void SetImage(byte[] currImgData, int imgWidth, int imgHeight)
 {
     ASVCore.SetImage(Key, currImgData, imgHeight, imgWidth);
     this.CurrImgData    = currImgData;
     this.CurrImgWidth   = imgWidth;
     this.CurrImgHeight  = imgHeight;
     this.CurrResultStr  = string.Empty;
     this.IsCurrResultOk = false;
 }
Exemplo n.º 2
0
 public void ShowEditWindow()
 {
     try
     {
         ASVCore.ShowEditWindow(this.Key);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public virtual bool Execute(byte[] imgData, int imgWidth, int imgHeight)
 {
     this.CurrResultStr  = string.Empty;
     this.IsCurrResultOk = false;
     byte[] resultBytes = new byte[1024];
     ASVCore.Excute(this.Key, imgData, imgHeight, imgWidth, resultBytes);
     this.CurrImgData   = imgData;
     this.CurrImgWidth  = imgWidth;
     this.CurrImgHeight = imgHeight;
     this.CurrResultStr = Encoding.Default.GetString(resultBytes);
     try
     {
         if (this.CurrResultStr.Substring(0, 2) == "NG")
         {
             return(false);
         }
         this.IsCurrResultOk = true;
         return(true);
     }
     catch
     {
         return(false);
     }
 }