Gets a value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error.
Sets a value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error.
Gets a base x-dimension, that is, the smallest width of the unit of barcode bars and spaces. Measured in getGraphicsUnit() / setGraphicsUnit(int). When barcode scaling is applied through a template, an actual x-dimension is calculated upon the base x-dimension and a scaling factor.
Returns:
float - A base x-dimension, that is, the smallest width of the unit of barcode bars and spaces.
setBaseXDimension(float value)
public void setBaseXDimension(float value)
Sets a base x-dimension, that is, the smallest width of the unit of barcode bars and spaces. Measured in getGraphicsUnit() / setGraphicsUnit(int). When barcode scaling is applied through a template, an actual x-dimension is calculated upon the base x-dimension and a scaling factor.
Parameters:
Parameter
Type
Description
value
float
A base x-dimension, that is, the smallest width of the unit of barcode bars and spaces.
Barcodes of some types (such as data matrix) may ignore an y-dimension and use an x-dimension for both width and height units.
When barcode scaling is applied through a template, an actual y-dimension is calculated upon the base y-dimension and a scaling factor.
Parameters:
Parameter
Type
Description
value
float
A base y-dimension, that is, the smallest height of the unit of 2D barcode modules.
getResolution()
public float getResolution()
Gets the horizontal and vertical resolution of a barcode image being generated. Measured in dots per inch. The default value is 96.
Returns:
float - The horizontal and vertical resolution of a barcode image being generated.
getXResolution()
public float getXResolution()
Gets the horizontal resolution of a barcode image being generated. Measured in dots per inch. The default value is 96.
Returns:
float - The horizontal resolution of a barcode image being generated.
getYResolution()
public float getYResolution()
Gets the vertical resolution of a barcode image being generated. Measured in dots per inch. The default value is 96.
Returns:
float - The vertical resolution of a barcode image being generated.
getUseAutoCorrection()
public boolean getUseAutoCorrection()
Gets a value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error. The default value is true. The auto-correction is not possible for Databar barcodes.
Returns:
boolean - A value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error.
setUseAutoCorrection(boolean value)
public void setUseAutoCorrection(boolean value)
Sets a value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error. The default value is true. The auto-correction is not possible for Databar barcodes.
Parameters:
Parameter
Type
Description
value
boolean
A value indicating whether an invalid barcode value should be corrected automatically (if possible) to fit the barcode’s specification or an exception should be thrown to indicate the error.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.