/// <summary>
 /// 条码信息类构造函数
 /// </summary>
 /// <param name="image">识别出条码的图片</param>
 /// <param name="info">条形码信息</param>
 /// <param name="hasBarcode">构造函数是否含有条码信息</param>
 /// <param name="cameraIndex">相机序列</param>
 internal BarCodeDescribe(Bitmap image, MvCodeInfo info, bool hasBarcode, int cameraIndex)
 {
     this.cameraIndex = cameraIndex;
     _GrabImage       = image;
     if (info != null)
     {
         if (hasBarcode)
         {
             _Code = new String(info.Code, 0, info.CodeLen);
         }
         else
         {
             _Code = string.Empty;
         }
         _Regions.Add(info.Region.PtArray);
         _Type       = info.Type;
         this._Valid = true;
         _Exception  = DetectExceptionType.NoExceptionType;
     }
     else
     {
         _Code = String.Empty;
         _Regions.Clear();
         _Type       = 0;
         this._Valid = false;
         _Exception  = DetectExceptionType.NULLCodeExceptionType;
     }
     _ExtMessageInfo = null;
 }
 /// <summary>
 /// 空构造
 /// </summary>
 internal BarCodeDescribe()
 {
     _GrabImage = null;
     _Code      = string.Empty;
     _Regions.Clear();
     _Type           = 0;
     _ExtMessageInfo = null;
     _Valid          = false;
     _Exception      = DetectExceptionType.NoExceptionType;
 }
 /// <summary>
 /// 条码信息类构造函数(异常信息)
 /// </summary>
 /// <param name="image">条码图片</param>
 /// <param name="e">异常信息类型</param>
 /// <param name="message">异常信息(条码数组)</param>
 /// <param name="infoList">条码类:用于取条码坐标</param>
 /// <param name="cameraIndex">相机序列</param>
 internal BarCodeDescribe(Bitmap image, DetectExceptionType e, string[] message, List <MvCodeInfo> infoList, int cameraIndex)
 {
     this.cameraIndex = cameraIndex;
     _GrabImage       = image;
     _Code            = string.Empty;
     foreach (var i in infoList)
     {
         _Regions.Add(i.Region.PtArray);
     }
     _Type           = 0;
     this._Valid     = false;
     _Exception      = e;
     _ExtMessageInfo = message;
 }