Click or drag to resize

IDecoderOptions Interface

Defines options for decoding barcodes.

Namespace:  Opait.Barcoder.Api
Assembly:  Opait.Barcoder (in Opait.Barcoder.dll) Version: 1.3.4.0
Syntax
C#
public interface IDecoderOptions

The IDecoderOptions type exposes the following members.

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 methodClearBarcodeTypes
Clear all possible barcode types. All barcode types will be considered when decoding. This can significantly reduce performance and increase false positives.
Public methodGetPageNumbers
Gets the list of page numbers that should be decoded. Parses the Pages string to generate a list of zero-based page numbers.
Public methodReset
Reset decoder options to their default values.
Top
See Also