コード例 #1
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();
         }
         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);
     }
 }
コード例 #2
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();
         }
         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);
     }
 }
コード例 #3
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();
         }
         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);
     }
 }
コード例 #4
0
        /// <summary>
        /// Returns true if ImageAdjustParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageAdjustParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageAdjustParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     RoiLeft == input.RoiLeft ||
                     RoiLeft.Equals(input.RoiLeft)
                 ) &&
                 (
                     RoiTop == input.RoiTop ||
                     RoiTop.Equals(input.RoiTop)
                 ) &&
                 (
                     RoiWidth == input.RoiWidth ||
                     RoiWidth.Equals(input.RoiWidth)
                 ) &&
                 (
                     RoiHeight == input.RoiHeight ||
                     RoiHeight.Equals(input.RoiHeight)
                 ) &&
                 (
                     GammaCorrection == input.GammaCorrection ||
                     GammaCorrection.Equals(input.GammaCorrection)
                 ) &&
                 (
                     Brightness == input.Brightness ||
                     Brightness.Equals(input.Brightness)
                 ) &&
                 (
                     Contrast == input.Contrast ||
                     Contrast.Equals(input.Contrast)
                 ) &&
                 (
                     Saturation == input.Saturation ||
                     Saturation.Equals(input.Saturation)
                 ) &&
                 (
                     AutoContrastEnhancement == input.AutoContrastEnhancement ||
                     AutoContrastEnhancement.Equals(input.AutoContrastEnhancement)
                 ) &&
                 (
                     ContrastHistogramStretch == input.ContrastHistogramStretch ||
                     ContrastHistogramStretch.Equals(input.ContrastHistogramStretch)
                 ));
        }
コード例 #5
0
        /// <summary>
        /// Returns true if ImageMICRParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageMICRParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageMICRParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     Font == input.Font ||
                     Font.Equals(input.Font)
                 ) &&
                 (
                     Context == input.Context ||
                     Context.Equals(input.Context)
                 ) &&
                 (
                     WhiteList == input.WhiteList ||
                     (WhiteList != null &&
                      WhiteList.Equals(input.WhiteList))
                 ) &&
                 (
                     RoiLeft == input.RoiLeft ||
                     RoiLeft.Equals(input.RoiLeft)
                 ) &&
                 (
                     RoiTop == input.RoiTop ||
                     RoiTop.Equals(input.RoiTop)
                 ) &&
                 (
                     RoiWidth == input.RoiWidth ||
                     RoiWidth.Equals(input.RoiWidth)
                 ) &&
                 (
                     RoiHeight == input.RoiHeight ||
                     RoiHeight.Equals(input.RoiHeight)
                 ) &&
                 (
                     ExpectedSymbolsCount == input.ExpectedSymbolsCount ||
                     ExpectedSymbolsCount.Equals(input.ExpectedSymbolsCount)
                 ));
        }
コード例 #6
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);
     }
 }
コード例 #7
0
        /// <summary>
        /// Returns true if ImageReadBarcodesParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageReadBarcodesParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageReadBarcodesParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     RoiLeft == input.RoiLeft ||
                     RoiLeft.Equals(input.RoiLeft)
                 ) &&
                 (
                     RoiTop == input.RoiTop ||
                     RoiTop.Equals(input.RoiTop)
                 ) &&
                 (
                     RoiWidth == input.RoiWidth ||
                     RoiWidth.Equals(input.RoiWidth)
                 ) &&
                 (
                     RoiHeight == input.RoiHeight ||
                     RoiHeight.Equals(input.RoiHeight)
                 ) &&
                 (
                     ScanMode == input.ScanMode ||
                     ScanMode.Equals(input.ScanMode)
                 ) &&
                 (
                     ScanBarcode1D == input.ScanBarcode1D ||
                     ScanBarcode1D.Equals(input.ScanBarcode1D)
                 ) &&
                 (
                     ScanBarcodeQR == input.ScanBarcodeQR ||
                     ScanBarcodeQR.Equals(input.ScanBarcodeQR)
                 ) &&
                 (
                     ScanBarcodeMicroQR == input.ScanBarcodeMicroQR ||
                     ScanBarcodeMicroQR.Equals(input.ScanBarcodeMicroQR)
                 ) &&
                 (
                     ScanBarcodePDF417 == input.ScanBarcodePDF417 ||
                     ScanBarcodePDF417.Equals(input.ScanBarcodePDF417)
                 ) &&
                 (
                     ScanBarcodeDataMatrix == input.ScanBarcodeDataMatrix ||
                     ScanBarcodeDataMatrix.Equals(input.ScanBarcodeDataMatrix)
                 ) &&
                 (
                     ScanBarcodeAztec == input.ScanBarcodeAztec ||
                     ScanBarcodeAztec.Equals(input.ScanBarcodeAztec)
                 ));
        }
コード例 #8
0
        /// <summary>
        /// Returns true if ImageFilterParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of ImageFilterParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ImageFilterParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     PageRange == input.PageRange ||
                     (PageRange != null &&
                      PageRange.Equals(input.PageRange))
                 ) &&
                 (
                     Filters == input.Filters ||
                     Filters != null &&
                     input.Filters != null &&
                     Filters.SequenceEqual(input.Filters)
                 ) &&
                 (
                     RoiLeft == input.RoiLeft ||
                     RoiLeft.Equals(input.RoiLeft)
                 ) &&
                 (
                     RoiTop == input.RoiTop ||
                     RoiTop.Equals(input.RoiTop)
                 ) &&
                 (
                     RoiWidth == input.RoiWidth ||
                     RoiWidth.Equals(input.RoiWidth)
                 ) &&
                 (
                     RoiHeight == input.RoiHeight ||
                     RoiHeight.Equals(input.RoiHeight)
                 ) &&
                 (
                     GaussianKernelSize == input.GaussianKernelSize ||
                     GaussianKernelSize.Equals(input.GaussianKernelSize)
                 ) &&
                 (
                     UnsharpMaskRadius == input.UnsharpMaskRadius ||
                     UnsharpMaskRadius.Equals(input.UnsharpMaskRadius)
                 ) &&
                 (
                     UnsharpMaskAmount == input.UnsharpMaskAmount ||
                     UnsharpMaskAmount.Equals(input.UnsharpMaskAmount)
                 ) &&
                 (
                     UnsharpMaskThreshold == input.UnsharpMaskThreshold ||
                     UnsharpMaskThreshold.Equals(input.UnsharpMaskThreshold)
                 ) &&
                 (
                     SubtractBackgroundRollingBallSize == input.SubtractBackgroundRollingBallSize ||
                     SubtractBackgroundRollingBallSize.Equals(input.SubtractBackgroundRollingBallSize)
                 ) &&
                 (
                     SubtractBackgroundLightBackground == input.SubtractBackgroundLightBackground ||
                     SubtractBackgroundLightBackground.Equals(input.SubtractBackgroundLightBackground)
                 ) &&
                 (
                     MedianKernelSize == input.MedianKernelSize ||
                     MedianKernelSize.Equals(input.MedianKernelSize)
                 ) &&
                 (
                     MinKernelSize == input.MinKernelSize ||
                     MinKernelSize.Equals(input.MinKernelSize)
                 ) &&
                 (
                     MaxKernelSize == input.MaxKernelSize ||
                     MaxKernelSize.Equals(input.MaxKernelSize)
                 ) &&
                 (
                     SoftenValue == input.SoftenValue ||
                     SoftenValue.Equals(input.SoftenValue)
                 ) &&
                 (
                     ColorizeHue == input.ColorizeHue ||
                     ColorizeHue.Equals(input.ColorizeHue)
                 ) &&
                 (
                     ColorizeSaturation == input.ColorizeSaturation ||
                     ColorizeSaturation.Equals(input.ColorizeSaturation)
                 ) &&
                 (
                     ColorizeLuminosity == input.ColorizeLuminosity ||
                     ColorizeLuminosity.Equals(input.ColorizeLuminosity)
                 ));
        }