DecoderOptions Class |
Namespace: Opait.Barcode
public class DecoderOptions
The DecoderOptions type exposes the following members.
Name | Description | |
---|---|---|
DecoderOptions |
Initializes a new instance of the DecoderOptions class.
| |
DecoderOptions(XElement) |
Initializes a new instance of the DecoderOptions class from an XML element.
|
Name | Description | |
---|---|---|
AutoRotate |
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.
| |
BarcodeTypes |
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.
| |
DetectMultiple |
Detect multiple barcodes on the same image.
| |
Pages |
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.
| |
Resolution |
Gets or sets the minimum image resolution when rasterizing pages.
Set to zero to automatically select the resolution.
| |
TryHarder |
Gets or sets a value indicating whether to search deeper into bitmaps.
| |
TryInverted |
Gets or sets a value indicating whether the image should be automatically inverted
if no result is found in the original image.
|
Name | Description | |
---|---|---|
AddBarcodeTypes |
Add the specified barcode types to the list of types considered when decoding.
| |
AddBarcodeTypes2D |
Add 2D barcode types to the list of types considered when decoding.
| |
AddBarcodeTypesIndustrial |
Add industrial 1D barcode types to the list of types considered when decoding.
| |
AddBarcodeTypesOther |
Add mixed-use and other 1D barcode types to the list of types considered when decoding.
| |
AddBarcodeTypesProduct |
Add product related 1D barcode types to the list of types considered when decoding.
| |
ClearBarcodeTypes |
Clear all possible barcode types. All barcode types will be
considered when decoding. This can significantly reduce
performance and increase false positives.
| |
FromXml |
Initialize the instance from the specified XML element.
| |
Reset |
Reset decoder options to their default values.
| |
ToXml |
Serializes the current instance as an XML element.
|
Name | Description | |
---|---|---|
BarcodeTypes2D |
List of supported 2D barcode types.
| |
BarcodeTypesIndustrial |
List of barcode types primarily used in industrial applications.
| |
BarcodeTypesOther |
List of mixed-use and other 1D barcode types.
| |
BarcodeTypesProduct |
List of barcode types primarily used for product identification.
|