public class BarcodeOptions extends Object
| Constructor and Description |
|---|
BarcodeOptions()
Initializes a new instance of the BarcodeOptions class with default values.
|
BarcodeOptions(QualityMode imageQuality,
QualityMode barcodeQuality,
String... codeTypes)
Initializes a new instance of the BarcodeOptions class with quality settings
and code types.
|
BarcodeOptions(Rectangle rectangle)
Initializes a new instance of the BarcodeOptions class with the rectangular
area.
|
BarcodeOptions(Rectangle rectangle,
QualityMode imageQuality,
QualityMode barcodeQuality,
Float dimension,
boolean allowIncorrectBarcodes,
String... codeTypes)
Initializes a new instance of the BarcodeOptions class.
|
| Modifier and Type | Method and Description |
|---|---|
QualityMode |
getBarcodeQuality()
Gets the quality of a source barcode.
|
List<String> |
getCodeTypes()
Gets the types of barcodes to read.
|
Float |
getDimension()
Gets the minimal size of the barcode minimal element.
|
QualityMode |
getImageQuality()
Gets the quality of a source image.
|
Rectangle |
getRectangle()
Gets the rectangular area that contains page areas.
|
boolean |
isAllowIncorrectBarcodes()
Gets the value that indicates whether the incorrect barcodes are allowed.
|
void |
setAllowIncorrectBarcodes(boolean allowIncorrectBarcodes)
Sets the value that indicates whether the incorrect barcodes are allowed.
|
void |
setBarcodeQuality(QualityMode barcodeQuality)
Sets the quality of a source barcode.
|
void |
setCodeTypes(List<String> codeTypes)
Sets the types of barcodes to read.
|
void |
setDimension(Float dimension)
Sets the minimal size of the barcode minimal element.
|
void |
setImageQuality(QualityMode imageQuality)
Sets the quality of a source image.
|
void |
setRectangle(Rectangle rectangle)
Sets the rectangular area that contains barcodes.
|
public BarcodeOptions()
public BarcodeOptions(Rectangle rectangle)
rectangle - The rectangular area that contains barcodes.public BarcodeOptions(QualityMode imageQuality, QualityMode barcodeQuality, String... codeTypes)
imageQuality - The quality of a source image.barcodeQuality - The quality of a source barcode.codeTypes - The types of barcodes to read.public BarcodeOptions(Rectangle rectangle, QualityMode imageQuality, QualityMode barcodeQuality, Float dimension, boolean allowIncorrectBarcodes, String... codeTypes)
rectangle - The rectangular area that contains barcodes.imageQuality - The quality of a source image.barcodeQuality - The quality of a source barcode.dimension - The minimal size of the barcode minimal
element.allowIncorrectBarcodes - The value that indicates whether the incorrect
barcodes are allowed.codeTypes - The types of barcodes to read.public boolean isAllowIncorrectBarcodes()
true if the incorrect barcodes are allowed; otherwise, false.public Float getDimension()
null if auto mode is used.public QualityMode getImageQuality()
public QualityMode getBarcodeQuality()
public Rectangle getRectangle()
Rectangle class that represents the rectangular area that contains page areas; null if it isn't set.public List<String> getCodeTypes()
public void setAllowIncorrectBarcodes(boolean allowIncorrectBarcodes)
allowIncorrectBarcodes - true if the incorrect barcodes are allowed.public void setDimension(Float dimension)
dimension - The barcode minimal element; null for auto mode.public void setImageQuality(QualityMode imageQuality)
imageQuality - The image quality mode.public void setBarcodeQuality(QualityMode barcodeQuality)
barcodeQuality - The barcode quality mode.public void setRectangle(Rectangle rectangle)
rectangle - The rectangular area; null to scan the whole page.Copyright © 2026. All rights reserved.