/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + RoiLeft.GetHashCode();
         hashCode = hashCode * 59 + RoiTop.GetHashCode();
         hashCode = hashCode * 59 + RoiWidth.GetHashCode();
         hashCode = hashCode * 59 + RoiHeight.GetHashCode();
         hashCode = hashCode * 59 + ScanMode.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcode1D.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcodeQR.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcodeMicroQR.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcodePDF417.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcodeDataMatrix.GetHashCode();
         hashCode = hashCode * 59 + ScanBarcodeAztec.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + RoiLeft.GetHashCode();
         hashCode = hashCode * 59 + RoiTop.GetHashCode();
         hashCode = hashCode * 59 + RoiWidth.GetHashCode();
         hashCode = hashCode * 59 + RoiHeight.GetHashCode();
         hashCode = hashCode * 59 + GammaCorrection.GetHashCode();
         hashCode = hashCode * 59 + Brightness.GetHashCode();
         hashCode = hashCode * 59 + Contrast.GetHashCode();
         hashCode = hashCode * 59 + Saturation.GetHashCode();
         hashCode = hashCode * 59 + AutoContrastEnhancement.GetHashCode();
         hashCode = hashCode * 59 + ContrastHistogramStretch.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + Font.GetHashCode();
         hashCode = hashCode * 59 + Context.GetHashCode();
         if (WhiteList != null)
         {
             hashCode = hashCode * 59 + WhiteList.GetHashCode();
         }
         hashCode = hashCode * 59 + RoiLeft.GetHashCode();
         hashCode = hashCode * 59 + RoiTop.GetHashCode();
         hashCode = hashCode * 59 + RoiWidth.GetHashCode();
         hashCode = hashCode * 59 + RoiHeight.GetHashCode();
         hashCode = hashCode * 59 + ExpectedSymbolsCount.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (PageRange != null)
         {
             hashCode = hashCode * 59 + PageRange.GetHashCode();
         }
         if (Filters != null)
         {
             hashCode = hashCode * 59 + Filters.GetHashCode();
         }
         hashCode = hashCode * 59 + RoiLeft.GetHashCode();
         hashCode = hashCode * 59 + RoiTop.GetHashCode();
         hashCode = hashCode * 59 + RoiWidth.GetHashCode();
         hashCode = hashCode * 59 + RoiHeight.GetHashCode();
         hashCode = hashCode * 59 + GaussianKernelSize.GetHashCode();
         hashCode = hashCode * 59 + UnsharpMaskRadius.GetHashCode();
         hashCode = hashCode * 59 + UnsharpMaskAmount.GetHashCode();
         hashCode = hashCode * 59 + UnsharpMaskThreshold.GetHashCode();
         hashCode = hashCode * 59 + SubtractBackgroundRollingBallSize.GetHashCode();
         hashCode = hashCode * 59 + SubtractBackgroundLightBackground.GetHashCode();
         hashCode = hashCode * 59 + MedianKernelSize.GetHashCode();
         hashCode = hashCode * 59 + MinKernelSize.GetHashCode();
         hashCode = hashCode * 59 + MaxKernelSize.GetHashCode();
         hashCode = hashCode * 59 + SoftenValue.GetHashCode();
         hashCode = hashCode * 59 + ColorizeHue.GetHashCode();
         hashCode = hashCode * 59 + ColorizeSaturation.GetHashCode();
         hashCode = hashCode * 59 + ColorizeLuminosity.GetHashCode();
         return(hashCode);
     }
 }