Click or drag to resize

DecoderOptions Class

Class represents decoder options.
Inheritance Hierarchy
SystemObject
  Opait.BarcodeDecoderOptions

Namespace:  Opait.Barcode
Assembly:  Opait.Barcode (in Opait.Barcode.dll) Version: 1.2.0.0
Syntax
C#
public class DecoderOptions

The DecoderOptions type exposes the following members.

Constructors
  NameDescription
Public methodDecoderOptions
Initializes a new instance of the DecoderOptions class.
Public methodDecoderOptions(XElement)
Initializes a new instance of the DecoderOptions class from an XML element.
Top
Properties
  NameDescription
Public propertyAutoRotate
Gets or sets a value indicating whether the image should be automatically rotated. Rotation is supported for 90, 180 and 270 degrees. Barcode detector sometimes fails to detect QRCode without this flag even when orientation is zero.
Public propertyBarcodeTypes
The list of barcode types to search when decoding. If set to null, then all available formats are searched. This can significantly reduce performance and increase false positives.
Public propertyDetectMultiple
Detect multiple barcodes on the same image.
Public propertyPages
Gets or sets the list of 1-based page numbers to process when decoding barcodes. For example "1,2-5,8-", will process pages 1, 2 to 5 inclusive and 8 to the end of the document. Use "odd" or "even" for odd/even numbered pages. Use "all" to process all pages. Use 0 for the last page, -1 for the page before the last, etc. Default is to process all pages.
Public propertyResolution
Gets or sets the minimum image resolution when rasterizing pages. Set to zero to automatically select the resolution.
Public propertyTryHarder
Gets or sets a value indicating whether to search deeper into bitmaps.
Public propertyTryInverted
Gets or sets a value indicating whether the image should be automatically inverted if no result is found in the original image.
Top
Methods
  NameDescription
Public methodAddBarcodeTypes
Add the specified barcode types to the list of types considered when decoding.
Public methodAddBarcodeTypes2D
Add 2D barcode types to the list of types considered when decoding.
Public methodAddBarcodeTypesIndustrial
Add industrial 1D barcode types to the list of types considered when decoding.
Public methodAddBarcodeTypesOther
Add mixed-use and other 1D barcode types to the list of types considered when decoding.
Public methodAddBarcodeTypesProduct
Add product related 1D barcode types to the list of types considered when decoding.
Public methodClearBarcodeTypes
Clear all possible barcode types. All barcode types will be considered when decoding. This can significantly reduce performance and increase false positives.
Public methodFromXml
Initialize the instance from the specified XML element.
Public methodReset
Reset decoder options to their default values.
Public methodToXml
Serializes the current instance as an XML element.
Top
Fields
  NameDescription
Public fieldStatic memberBarcodeTypes2D
List of supported 2D barcode types.
Public fieldStatic memberBarcodeTypesIndustrial
List of barcode types primarily used in industrial applications.
Public fieldStatic memberBarcodeTypesOther
List of mixed-use and other 1D barcode types.
Public fieldStatic memberBarcodeTypesProduct
List of barcode types primarily used for product identification.
Top
See Also