/// <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)
                 ));
        }
        /// <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)
                 ));
        }
        /// <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)
                 ));
        }
Пример #4
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)
                 ));
        }