@Deprecated public class BarCodeBuilder extends java.lang.Object implements IBarCodeControl
BarCodeBuilder is deprecated. Use com.aspose.barcode.generation.BarCodeGenerator instead. BarCodeBuilder for backend barcode images generation.
supported encode types: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost 2D: DataMatrix, Pdf417, QR code
Create and save a BarCode imageBarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodeText("12345678"); b.save("test.png");
Modifier and Type | Field and Description |
---|---|
boolean |
pdf417Truncate
Deprecated.
|
Constructor and Description |
---|
BarCodeBuilder()
Deprecated.
|
BarCodeBuilder(java.lang.String codeText)
Deprecated.
Initializes a new instance of the BarCodeBuilder} class with codetext
, default EncodeType is Code128.
|
BarCodeBuilder(java.lang.String codeText,
BaseEncodeType type)
Deprecated.
Initializes a new instance of the
BarCodeBuilder class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
Clean up any resources being used.
|
Bitmap |
generateBarCodeImage()
Deprecated.
Generate the BarCode image under current settings
|
boolean |
getAlwaysShowChecksum()
Deprecated.
Always display checksum digit in the humanreadable text for Code128 and GS1Code128 barcodes.
|
float |
getAspectRatio()
Deprecated.
2D BarCode's module's height/width ratio (yDimension/xDimension).
|
boolean |
getAutoSize()
Deprecated.
Adjusts the image's size automatically.
|
AztecSymbolMode |
getAztecSymbolMode()
Deprecated.
Get a Aztec Symbol mode.
|
java.lang.String |
getAztecSymbolModeName()
Deprecated.
|
int |
getAztectErrorLevel()
Deprecated.
Level of error corection of Aztect types of barcode.
|
int |
getBackColor()
Deprecated.
Background color of the barcode image
|
java.lang.String |
getBackColorName()
Deprecated.
Gets a background color name of the barcode image
|
Bitmap |
getBarCodeImage()
Deprecated.
Get the BarCode image under current settings
|
Caption |
getBarCodeImageCaptionAbove()
Deprecated.
|
float |
getBarHeight()
Deprecated.
height of 1D barcodes' bars.
|
float |
getBarWidthReduction()
Deprecated.
Bar width reduction.
|
int |
getBorderColor()
Deprecated.
BarCode Image's border's color
See BorderWidth.
|
java.lang.String |
getBorderColorName()
Deprecated.
Gets a barcode Image's border's color name
|
BorderDashStyle |
getBorderDashStyle()
Deprecated.
BarCode Image's border's style
|
boolean |
getBorderVisible()
Deprecated.
Gets a value indicating whether [border visible].
|
float |
getBorderWidth()
Deprecated.
Get barCode Image's border's width
Default Graphics Unit: MILLIMETER
|
Caption |
getCaptionAbove()
Deprecated.
Get caption Above the BarCode image.
|
Caption |
getCaptionBelow()
Deprecated.
Caption Below the BarCode image.
|
CodabarChecksumMode |
getCodabarChecksumMode()
Deprecated.
Get the checksum algorithm for Codabar barcodes.
|
short |
getCodabarStartSymbol()
Deprecated.
Start symbol (character) of codabar symbology
See CodabarStopSymbol}.
|
java.lang.String |
getCodabarStartSymbolName()
Deprecated.
Gets the name of start symbol (character) of codabar symbology
|
short |
getCodabarStopSymbol()
Deprecated.
Stop symbol (character) of codabar symbology
See CodabarStartSymbol.
|
java.lang.String |
getCodabarStopSymbolName()
Deprecated.
Gets the name of stop symbol (character) of codabar symbology
|
CodeLocation |
getCodeLocation()
Deprecated.
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
|
java.lang.String |
getCodeLocationName()
Deprecated.
|
java.lang.String |
getCodeText()
Deprecated.
Data to be encoded, different types of BarCode may have different CodeText length restrictions
|
StringAlignment |
getCodeTextAlignment()
Deprecated.
Gets the alignment of the code text.
|
int |
getCodeTextColor()
Deprecated.
Specify the displaying CodeText's Color
|
java.lang.String |
getCodeTextColorName()
Deprecated.
Gets the CodeText's Color name
|
java.nio.charset.Charset |
getCodeTextEncoding()
Deprecated.
Gets the encoding of codetext.
|
TextPaint |
getCodeTextFont()
Deprecated.
Specify the displaying CodeText's font
See CodeText.
|
float |
getCodeTextSpace()
Deprecated.
Get space between the CodeText and the BarCode.
|
int |
getColumns()
Deprecated.
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable EncodeTypes: Pdf417, CodablockF
|
CustomerInformationInterpretingType |
getCustomerInformationInterpretingType()
Deprecated.
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
|
Bitmap |
getCustomSizeBarCodeImage(android.util.Size customBarCodeSize,
boolean allowSpaceAround)
Deprecated.
Gets the scaled barcode image.
|
Bitmap |
getCustomSizeBarCodeImage(float customBarCodeWidth,
float customBarCodeHeight,
boolean allowSpaceAround)
Deprecated.
Gets the scaled barcode image.
|
DataMatrixEccType |
getDatamatrixEcc()
Deprecated.
Gets a Datamatri ECC type.
|
DataMatrixEncodeMode |
getDataMatrixEncodeMode()
Deprecated.
Encode mode of Datamatrix barcode, default to Auto
|
java.lang.String |
getDisplay2DText()
Deprecated.
Gets the text will displayed on the barcode's image.
|
int |
getDotCodeMask()
Deprecated.
Mask of Dotcode barcode, default to Auto
|
int |
getECIEncoding()
Deprecated.
|
EnableChecksum |
getEnableChecksum()
Deprecated.
EnableChecksum
|
boolean |
getEnableEscape()
Deprecated.
Indicates whether explains the character "\" as an escape character in CodeText property.
|
BaseEncodeType |
getEncodeType()
Deprecated.
Get BarCode's encode type (symbology).
|
boolean |
getFilledBars()
Deprecated.
Only for 1D barcodes.
|
int |
getForeColor()
Deprecated.
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode
See System.Drawing.Color.
|
java.lang.String |
getForeColorName()
Deprecated.
Gets a foreground color name
|
GraphicsUnit |
getGraphicsUnit()
Deprecated.
Measurement of various properties such as width, height etc.
|
java.lang.String |
getGraphicsUnitName()
Deprecated.
|
float |
getImageHeight()
Deprecated.
Get barCode image's height.
|
ImageQualityMode |
getImageQuality()
Deprecated.
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
|
java.lang.String |
getImageQualityName()
Deprecated.
|
float |
getImageWidth()
Deprecated.
Get barCode image's width.
|
float |
getITF14BorderThickness()
Deprecated.
Gets an ITF14 border (bearer bar) thickness.
|
ITF14BorderType |
getITF14BorderType()
Deprecated.
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
int |
getMacroPdf417FileID()
Deprecated.
Gets macro pdf417 barcode's file ID.
|
int |
getMacroPdf417SegmentID()
Deprecated.
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
|
int |
getMacroPdf417SegmentsCount()
Deprecated.
Gets macro pdf417 barcode segments count.
|
MarginsF |
getMargins()
Deprecated.
Margin area around the core BarCode image
If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored
Default Graphics Unit: Millimeter
|
int |
getMaxiCodeEncodeMode()
Deprecated.
Gets a MaxiCode encode mode
|
android.util.SizeF |
getMinimumBarCodeSize()
Deprecated.
Returns the minimum width and height, in current
GraphicsUnit , of this BarCode. |
Bitmap |
getOnlyBarCodeImage()
Deprecated.
Gets the only barcode image.
|
Bitmap |
getOnlyBarCodeImage(int scaleFactor)
Deprecated.
Gets the only barcode image.
|
Pdf417CompactionMode |
getPdf417CompactionMode()
Deprecated.
Pdf417 encode type of BarCode's compaction mode, default compaction mode is
|
Pdf417ErrorLevel |
getPdf417ErrorLevel()
Deprecated.
Gets Pdf417 encode type of BarCode's error coccrection level
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture
|
boolean |
getPdf417Truncate()
Deprecated.
whether pdf417 encode type of BarCode is truncated (to reduce space)
|
float |
getPlanetShortBarHeight()
Deprecated.
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
float |
getPostnetShortBarHeight()
Deprecated.
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
|
java.lang.String |
getPrinterName()
Deprecated.
Choose printer, if not specified, Print() method will choose the first available printer
|
QREncodeMode |
getQREncodeMode()
Deprecated.
QR encode type of BarCode's encoding mode, default mode is
|
QREncodeType |
getQREncodeType()
Deprecated.
QR / MicroQR selector mode.
|
QRErrorLevel |
getQRErrorLevel()
Deprecated.
Level of Reed-Solomon error correction for QR barcode.
|
QRVersion |
getQRVersion()
Deprecated.
Version of QR Code.
|
Resolution |
getResolution()
Deprecated.
Gets the resolution of the BarCode image
See Resolution.
|
float |
getRotationAngleF()
Deprecated.
BarCode image's rotation angle, measured in degree, e.g.
|
int |
getRows()
Deprecated.
BarCode's rows, if setting is illegal then rows will be calculated automatically.
|
java.lang.String |
getSupplementData()
Deprecated.
Supplement data following BarCodes of encode types UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
float |
getSupplementSpace()
Deprecated.
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter
|
boolean |
getThrowExceptionWhenCodeTextIncorrect()
Deprecated.
Only for 1D barcodes.
|
float |
getWideNarrowRatio()
Deprecated.
Wide bars to Narrow bars ratio for some 1D BarCode.
|
float |
getxDimension()
Deprecated.
Get x-dimension, smallest width unit of BarCode's bars or spaces.
|
float |
getyDimension()
Deprecated.
y-dimension, smallest height unit of 2D BarCode's modules.
|
boolean |
isLicensed()
Deprecated.
Gets a value indicating whether generation module is licensed.
|
boolean |
isOverridedDimensionX()
Deprecated.
Check if x dimension is specified by the user
|
void |
rotate()
Deprecated.
Rotate barcode image clockwise for 90 degrees
|
void |
rotate(float angle)
Deprecated.
Rotate barcode image clockwise
|
void |
rotate(int direction,
float angle)
Deprecated.
|
void |
rotate(RotationDirection direction,
float angle)
Deprecated.
Rotate the barcode image
|
void |
save(java.io.OutputStream stream,
BarCodeImageFormat format)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
save(java.io.OutputStream stream,
Bitmap.CompressFormat format)
Deprecated.
Save BarCodeImage to stream in specific format
|
void |
save(java.io.OutputStream stream,
int format)
Deprecated.
|
void |
save(java.lang.String filename)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename,
BarCodeImageFormat format)
Deprecated.
|
void |
save(java.lang.String filename,
Bitmap.CompressFormat format)
Deprecated.
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename,
int format)
Deprecated.
|
void |
setAlwaysShowChecksum(boolean value)
Deprecated.
Always display checksum digit in the humanreadable text for Code128 and GS1Code128 barcodes.
|
void |
setAspectRatio(float value)
Deprecated.
2D BarCode's module's height/width ratio (yDimension/xDimension).
|
void |
setAutoSize(boolean value)
Deprecated.
Adjusts the image's size automatically.
|
void |
setAztecSymbolMode(AztecSymbolMode value)
Deprecated.
Set a Aztec Symbol mode.
|
void |
setAztecSymbolMode(int value)
Deprecated.
|
void |
setAztectErrorLevel(int value)
Deprecated.
Level of error corection of Aztect types of barcode.
|
void |
setBackColor(int value)
Deprecated.
Background color of the barcode image
See System.Drawing.Color.
|
void |
setBarHeight(float value)
Deprecated.
height of 1D barcodes' bars.
|
void |
setBarWidthReduction(float value)
Deprecated.
Bar width reduction.
|
void |
setBinaryCodeText(byte[] codeText)
Deprecated.
Set the binary data to be encoded.
|
void |
setBorderColor(int value)
Deprecated.
BarCode Image's border's color
|
void |
setBorderDashStyle(BorderDashStyle value)
Deprecated.
BarCode Image's border's style
See BorderWidth.
|
void |
setBorderDashStyle(int value)
Deprecated.
|
void |
setBorderVisible(boolean value)
Deprecated.
Sets a value indicating whether [border visible].
|
void |
setBorderWidth(float value)
Deprecated.
Set barCode Image's border's width
Default Graphics Unit: MILLIMETER
|
void |
setCaptionAbove(Caption value)
Deprecated.
Set Caption Above the BarCode image.
|
void |
setCaptionBelow(Caption value)
Deprecated.
Caption Below the BarCode image.
|
void |
setCodabarChecksumMode(CodabarChecksumMode value)
Deprecated.
Set the checksum algorithm for Codabar barcodes.
|
void |
setCodabarChecksumMode(int value)
Deprecated.
|
void |
setCodabarStartSymbol(short value)
Deprecated.
Start symbol (character) of codabar symbology
See CodabarStopSymbol}.
|
void |
setCodabarStopSymbol(short value)
Deprecated.
Stop symbol (character) of codabar encode type
|
void |
setCodeLocation(CodeLocation value)
Deprecated.
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
|
void |
setCodeLocation(int value)
Deprecated.
|
void |
setCodeText(java.lang.String value)
Deprecated.
Set data to be encoded, different types of BarCode may have different CodeText length restrictions
|
void |
setCodeTextAlignment(int value)
Deprecated.
|
void |
setCodeTextAlignment(StringAlignment value)
Deprecated.
Sets the alignment of the code text.
|
void |
setCodeTextColor(int value)
Deprecated.
Specify the displaying CodeText's Color
|
void |
setCodeTextEncoding(java.nio.charset.Charset value)
Deprecated.
Sets the encoding of codetext.
|
void |
setCodeTextFont(TextPaint value)
Deprecated.
Specify the displaying CodeText's font
|
void |
setCodeTextSpace(float value)
Deprecated.
Set space between the CodeText and the BarCode.
|
void |
setColumns(int value)
Deprecated.
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable EncodeTypes: Pdf417
|
void |
setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
Deprecated.
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
|
void |
setCustomerInformationInterpretingType(int value)
Deprecated.
|
void |
setDatamatrixEcc(DataMatrixEccType value)
Deprecated.
Sets a Datamatri ECC type.
|
void |
setDatamatrixEcc(int value)
Deprecated.
|
void |
setDataMatrixEncodeMode(DataMatrixEncodeMode value)
Deprecated.
Encode mode of Datamatrix barcode, default to Auto
|
void |
setDataMatrixEncodeMode(int value)
Deprecated.
|
void |
setDisplay2DText(java.lang.String value)
Deprecated.
Sets the text will displayed on the barcode's image.
|
void |
setDotCodeMask(int value)
Deprecated.
Mask of Dotcode barcode, default to Auto
|
void |
setECIEncoding(int value)
Deprecated.
Extended Channel Interpretation Identifiers.
|
void |
setEnableChecksum(EnableChecksum value)
Deprecated.
EnableChecksum
|
void |
setEnableChecksum(int value)
Deprecated.
|
void |
setEnableEscape(boolean value)
Deprecated.
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setEncodeType(BaseEncodeType value)
Deprecated.
Set BarCode's encode type (symbology).
|
void |
setFilledBars(boolean value)
Deprecated.
Only for 1D barcodes.
|
void |
setForeColor(int value)
Deprecated.
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode
See System.Drawing.Color.
|
void |
setGraphicsUnit(GraphicsUnit value)
Deprecated.
Measurement of various properties such as width, height etc.
|
void |
setGraphicsUnit(int value)
Deprecated.
|
void |
setImageHeight(float value)
Deprecated.
Set barCode image's height.
|
void |
setImageQuality(ImageQualityMode value)
Deprecated.
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
|
void |
setImageQuality(int value)
Deprecated.
|
void |
setImageWidth(float value)
Deprecated.
Set barCode image's width.
|
void |
setITF14BorderThickness(float value)
Deprecated.
Sets an ITF14 border (bearer bar) thickness.
|
void |
setITF14BorderType(int value)
Deprecated.
|
void |
setITF14BorderType(ITF14BorderType value)
Deprecated.
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
void |
setMacroPdf417FileID(int value)
Deprecated.
Sets macro pdf417 barcode's file ID.
|
void |
setMacroPdf417SegmentID(int value)
Deprecated.
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
|
void |
setMacroPdf417SegmentsCount(int value)
Deprecated.
Sets macro pdf417 barcode segments count.
|
void |
setMargins(MarginsF value)
Deprecated.
Margin area around the core BarCode image
If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored
Default Graphics Unit: Millimeter
|
void |
setMaxiCodeEncodeMode(int value)
Deprecated.
Sets a MaxiCode encode mode
|
void |
setPdf417CompactionMode(int value)
Deprecated.
|
void |
setPdf417CompactionMode(Pdf417CompactionMode value)
Deprecated.
Pdf417 encode type of BarCode's compaction mode, default compaction mode is
|
void |
setPdf417ErrorLevel(int value)
Deprecated.
|
void |
setPdf417ErrorLevel(Pdf417ErrorLevel value)
Deprecated.
Sets Pdf417 encode type of BarCode's error coccrection level
ranging from level0 to level8, level0 means no error correction info,
level8 means best error correction which means a larger picture
|
void |
setPdf417Truncate(boolean value)
Deprecated.
whether pdf417 encode type of BarCode is truncated (to reduce space)
|
void |
setPlanetShortBarHeight(float value)
Deprecated.
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
void |
setPostnetShortBarHeight(float value)
Deprecated.
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
|
void |
setPrinterName(java.lang.String value)
Deprecated.
Choose printer, if not specified, Print() method will choose the first available printer
|
void |
setQREncodeMode(int value)
Deprecated.
|
void |
setQREncodeMode(QREncodeMode value)
Deprecated.
QR encode type of BarCode's encoding mode, default mode is
|
void |
setQREncodeType(int value)
Deprecated.
|
void |
setQREncodeType(QREncodeType value)
Deprecated.
|
void |
setQRErrorLevel(int value)
Deprecated.
|
void |
setQRErrorLevel(QRErrorLevel value)
Deprecated.
Level of Reed-Solomon error correction for QR barcode.
|
void |
setQRVersion(int value)
Deprecated.
|
void |
setQRVersion(QRVersion value)
Deprecated.
For GS1 DataBar barcode with linkage flag(contains 2D barcode).
|
void |
setResolution(Resolution value)
Deprecated.
Sets the resolution of the BarCode image
See Resolution.
|
void |
setRotationAngleF(float value)
Deprecated.
BarCode image's rotation angle, measured in degree, e.g.
|
void |
setRows(int value)
Deprecated.
BarCode's rows, if setting is illegal then rows will be calculated automatically.
|
void |
setSupplementData(java.lang.String value)
Deprecated.
Supplement data following BarCodes of encode types UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
void |
setSupplementSpace(float value)
Deprecated.
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter
|
void |
setThrowExceptionWhenCodeTextIncorrect(boolean value)
Deprecated.
Only for 1D barcodes.
|
void |
setWideNarrowRatio(float value)
Deprecated.
Wide bars to Narrow bars ratio for some 1D BarCode.
|
void |
setxDimension(float value)
Deprecated.
x-dimension, smallest width unit of BarCode's bars or spaces.
|
void |
setyDimension(float value)
Deprecated.
y-dimension, smallest height unit of 2D BarCode's modules.
|
java.lang.String |
toString()
Deprecated.
Overridden method representing BarCodeBuilder as a string.
|
public BarCodeBuilder()
public BarCodeBuilder(java.lang.String codeText)
Initializes a new instance of the BarCodeBuilder} class with codetext , default EncodeType is Code128.
codeText
- string text data to be encodedpublic BarCodeBuilder(java.lang.String codeText, BaseEncodeType type)
Initializes a new instance of the BarCodeBuilder
class.
codeText
- string text data to be encodedtype
- BarCode's type: Aspose.BarCode.BaseEncodeTypepublic boolean isLicensed()
Gets a value indicating whether generation module is licensed.
Value: true if generation module is licensed; otherwise, false.public BaseEncodeType getEncodeType()
Get BarCode's encode type (symbology).
Use EncodeTypes
to set one of more than 64 encode types
getEncodeType
in interface IBarCodeControl
public void setEncodeType(BaseEncodeType value)
Set BarCode's encode type (symbology).
Use EncodeTypes
to set one of more than 64 encode types:
Code128, Code39, EAN13, EAN8, DataMatrix, Pdf417, QR, Aztec, MaxiCode, DotCode, Postnet, Planet, OneCode and other.
Creates and saves a BarCode imageBarCodeBuilder barCodeBuilder = new BarCodeBuilder(); barCodeBuilder.setEncodeType(EncodeTypes.CODABAR); barCodeBuilder.setCodeText("12345678"); barCodeBuilder.save("test.png");
setEncodeType
in interface IBarCodeControl
public Caption getBarCodeImageCaptionAbove()
public java.lang.String getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions
getCodeText
in interface IBarCodeControl
public void setCodeText(java.lang.String value)
Set data to be encoded, different types of BarCode may have different CodeText length restrictions
Create and save a BarCode imageBarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodeText("12345678"); b.save("test.png");
setCodeText
in interface IBarCodeControl
public QRVersion getQRVersion()
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. Default value is QRVersion.Auto.
public void setQRVersion(QRVersion value)
For GS1 DataBar barcode with linkage flag(contains 2D barcode). The secondary CodeText to be encoded in the 2D part.
The DataBar barcode will contain 2D part and separator part if SecondaryCodeText did not equal to string.Empty.
@Deprecated public void setQRVersion(int value)
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. Default value is QRVersion.Auto.
public void setBinaryCodeText(byte[] codeText)
Set the binary data to be encoded.
codeText
- The binary data to be encoded.public java.lang.String getDisplay2DText()
Gets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.
Value: The text to display.getDisplay2DText
in interface IBarCodeControl
public void setDisplay2DText(java.lang.String value)
Sets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.
Value: The text to display.setDisplay2DText
in interface IBarCodeControl
public java.nio.charset.Charset getCodeTextEncoding()
Gets the encoding of codetext.
Value: The encoding for codetext.public void setCodeTextEncoding(java.nio.charset.Charset value)
Sets the encoding of codetext.
Value: The encoding for codetext.public boolean getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property. It is worked pdf417, DataMatrix, Code128 only
See CodeText
.
<note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>
getEnableEscape
in interface IBarCodeControl
public void setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property. It is worked pdf417, DataMatrix, Code128 only
See CodeText
.
<note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>
setEnableEscape
in interface IBarCodeControl
public TextPaint getCodeTextFont()
Specify the displaying CodeText's font See CodeText. See System.Drawing.Font. See CodeTextColor. See CodeLocation. See CodeTextSpace. See CodeTextAlignment.
getCodeTextFont
in interface IBarCodeControl
public void setCodeTextFont(TextPaint value)
Specify the displaying CodeText's font
setCodeTextFont
in interface IBarCodeControl
value
- CodeTextFontpublic int getCodeTextColor()
Specify the displaying CodeText's Color
getCodeTextColor
in interface IBarCodeControl
public java.lang.String getCodeTextColorName()
Gets the CodeText's Color name
public void setCodeTextColor(int value)
Specify the displaying CodeText's Color
public CodeLocation getCodeLocation()
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText. CodeLocation will be ignored if EncodeType is UPCE, UPCA, ISBN, EAN8 or EAN13
getCodeLocation
in interface IBarCodeControl
@Deprecated public java.lang.String getCodeLocationName()
Gets a CodeLocation name
@Deprecated public void setCodeLocation(int value)
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText. CodeLocation will be ignored if EncodeType is UPCE, UPCA, ISBN, EAN8 or EAN13
public void setCodeLocation(CodeLocation value)
Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText. CodeLocation will be ignored if EncodeType is UPCE, UPCA, ISBN, EAN8 or EAN13
setCodeLocation
in interface IBarCodeControl
public StringAlignment getCodeTextAlignment()
Gets the alignment of the code text.
getCodeTextAlignment
in interface IBarCodeControl
public void setCodeTextAlignment(StringAlignment value)
Sets the alignment of the code text.
setCodeTextAlignment
in interface IBarCodeControl
@Deprecated public void setCodeTextAlignment(int value)
Sets the alignment of the code text.
setCodeTextAlignment
in interface IBarCodeControl
public float getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
getRotationAngleF
in interface IBarCodeControl
public void setRotationAngleF(float value)
BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
setRotationAngleF
in interface IBarCodeControl
public Caption getCaptionAbove()
Get caption Above the BarCode image.
getCaptionAbove
in interface IBarCodeControl
public void setCaptionAbove(Caption value)
Set Caption Above the BarCode image.
setCaptionAbove
in interface IBarCodeControl
BarCodeBuilder b = new BarCodeBuilder();
b.getCaptionAbove().setCodeText("This is a BarCode image");
b.getCaptionAbove().setVisible(true);
b.getCaptionAbove().setFont(new Font("Arial", 0, 8f));
//space between the barcode and the caption
b.getCaptionAbove().setSpace(2f);
public Caption getCaptionBelow()
Caption Below the BarCode image.
getCaptionBelow
in interface IBarCodeControl
public void setCaptionBelow(Caption value)
Caption Below the BarCode image.
setCaptionBelow
in interface IBarCodeControl
BarCodeBuilder b = new BarCodeBuilder();
b.getCaptionBelow().setCodeText("This is a BarCode image");
b.getCaptionBelow().setVisible(true);
b.getCaptionBelow().setFont(new Font("Arial", 8f));
//space between the barcode and the caption
b.getCaptionBelow().setSpace(2f);
public GraphicsUnit getGraphicsUnit()
Measurement of various properties such as width, height etc. Default GraphicsUnit: MILLIMETER
getGraphicsUnit
in interface IBarCodeControl
@Deprecated public java.lang.String getGraphicsUnitName()
public void setGraphicsUnit(GraphicsUnit value)
Measurement of various properties such as width, height etc. Default GraphicsUnit: MILLIMETER See System.Drawing.GraphicsUnit.
setGraphicsUnit
in interface IBarCodeControl
@Deprecated public void setGraphicsUnit(int value)
Measurement of various properties such as width, height etc. Default GraphicsUnit: MILLIMETER See System.Drawing.GraphicsUnit.
setGraphicsUnit
in interface IBarCodeControl
public Resolution getResolution()
Gets the resolution of the BarCode image See Resolution.
getResolution
in interface IBarCodeControl
public void setResolution(Resolution value)
Sets the resolution of the BarCode image See Resolution.
setResolution
in interface IBarCodeControl
public java.lang.String getPrinterName()
Choose printer, if not specified, Print() method will choose the first available printer
public void setPrinterName(java.lang.String value)
Choose printer, if not specified, Print() method will choose the first available printer
public ImageQualityMode getImageQuality()
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode See ImageQualityMode.
getImageQuality
in interface IBarCodeControl
@Deprecated public java.lang.String getImageQualityName()
Gets ImageQualityMode name
@Deprecated public void setImageQuality(int value)
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode See ImageQualityMode.
setImageQuality
in interface IBarCodeControl
public void setImageQuality(ImageQualityMode value)
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode See ImageQualityMode.
setImageQuality
in interface IBarCodeControl
public boolean getAutoSize()
Adjusts the image's size automatically. Recommended: true. Default value is true.
getAutoSize
in interface IBarCodeControl
public void setAutoSize(boolean value)
Adjusts the image's size automatically. Recommended: true. Default value is true.
setAutoSize
in interface IBarCodeControl
public float getImageWidth()
Get barCode image's width. If AutoSize is true, the image width will be increased accordingly Default Graphics Unit: MILLIMETER
getImageWidth
in interface IBarCodeControl
public void setImageWidth(float value)
Set barCode image's width. If AutoSize is true, the image width will be increased accordingly Default Graphics Unit: MILLIMETER
setImageWidth
in interface IBarCodeControl
public float getImageHeight()
Get barCode image's height. If AutoSize is true, ImageHeight will be increased accordingly Default Graphics Unit: MILLIMETER
getImageHeight
in interface IBarCodeControl
public void setImageHeight(float value)
Set barCode image's height. If AutoSize is true, ImageHeight will be increased accordingly Default Graphics Unit: MILLIMETER
setImageHeight
in interface IBarCodeControl
public float getBorderWidth()
Get barCode Image's border's width Default Graphics Unit: MILLIMETER
getBorderWidth
in interface IBarCodeControl
public void setBorderWidth(float value)
Set barCode Image's border's width Default Graphics Unit: MILLIMETER
setBorderWidth
in interface IBarCodeControl
public float getxDimension()
Get x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true Default Graphics Unit: MILLIMETER
getxDimension
in interface IBarCodeControl
public void setxDimension(float value)
x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true Default Graphics Unit: MILLIMETER
setxDimension
in interface IBarCodeControl
public float getyDimension()
y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: MILLIMETER
getyDimension
in interface IBarCodeControl
public void setyDimension(float value)
y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: MILLIMETER
setyDimension
in interface IBarCodeControl
public float getBarHeight()
height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: MILLIMETER
getBarHeight
in interface IBarCodeControl
public void setBarHeight(float value)
height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. Default Graphics Unit: MILLIMETER
setBarHeight
in interface IBarCodeControl
public float getAspectRatio()
2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature.
getAspectRatio
in interface IBarCodeControl
public void setAspectRatio(float value)
2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature.
setAspectRatio
in interface IBarCodeControl
public MarginsF getMargins()
Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored Default Graphics Unit: Millimeter
getMargins
in interface IBarCodeControl
public void setMargins(MarginsF value)
Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored Default Graphics Unit: Millimeter
public float getSupplementSpace()
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter
getSupplementSpace
in interface IBarCodeControl
public void setSupplementSpace(float value)
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter
setSupplementSpace
in interface IBarCodeControl
public float getPostnetShortBarHeight()
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing See System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: See BarHeightBarHeight.
getPostnetShortBarHeight
in interface IBarCodeControl
public void setPostnetShortBarHeight(float value)
Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing See System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: See BarHeightBarHeight.
setPostnetShortBarHeight
in interface IBarCodeControl
public float getPlanetShortBarHeight()
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
getPlanetShortBarHeight
in interface IBarCodeControl
public void setPlanetShortBarHeight(float value)
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
setPlanetShortBarHeight
in interface IBarCodeControl
public float getCodeTextSpace()
Get space between the CodeText and the BarCode. Default Graphics Unit: MILLIMETER
getCodeTextSpace
in interface IBarCodeControl
public void setCodeTextSpace(float value)
Set space between the CodeText and the BarCode. Default Graphics Unit: MILLIMETER
setCodeTextSpace
in interface IBarCodeControl
public Bitmap getBarCodeImage()
Get the BarCode image under current settings
getBarCodeImage
in interface IBarCodeControl
public boolean getBorderVisible()
Gets a value indicating whether [border visible].
getBorderVisible
in interface IBarCodeControl
public void setBorderVisible(boolean value)
Sets a value indicating whether [border visible].
setBorderVisible
in interface IBarCodeControl
value
- is true if [border visible]; otherwise, false}.public int getBorderColor()
BarCode Image's border's color See BorderWidth. See BorderVisible. See BorderDashStyle
getBorderColor
in interface IBarCodeControl
public java.lang.String getBorderColorName()
Gets a barcode Image's border's color name
public void setBorderColor(int value)
BarCode Image's border's color
setBorderColor
in interface IBarCodeControl
public BorderDashStyle getBorderDashStyle()
BarCode Image's border's style
getBorderDashStyle
in interface IBarCodeControl
public void setBorderDashStyle(BorderDashStyle value)
BarCode Image's border's style See BorderWidth. See BorderVisible. See BorderColor
setBorderDashStyle
in interface IBarCodeControl
@Deprecated public void setBorderDashStyle(int value)
BarCode Image's border's style See BorderWidth. See BorderVisible. See BorderColor
setBorderDashStyle
in interface IBarCodeControl
public short getCodabarStartSymbol()
Start symbol (character) of codabar symbology See CodabarStopSymbol}.
BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodabarStartSymbol(CodabarSymbol.A); b.setCodabarStopSymbol(CodabarSymbol.B); b.setCodeText("123456");
getCodabarStartSymbol
in interface IBarCodeControl
public java.lang.String getCodabarStartSymbolName()
Gets the name of start symbol (character) of codabar symbology
public java.lang.String getCodabarStopSymbolName()
Gets the name of stop symbol (character) of codabar symbology
public void setCodabarStartSymbol(short value)
Start symbol (character) of codabar symbology See CodabarStopSymbol}.
com.aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodabarStartSymbol(CodabarSymbol.A); b.setCodabarStopSymbol(CodabarSymbol.B); b.setCodeText("123456");
setCodabarStartSymbol
in interface IBarCodeControl
public short getCodabarStopSymbol()
Stop symbol (character) of codabar symbology See CodabarStartSymbol.
com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setCodabarStartSymbol(CodabarSymbol.A); b.setCodabarStopSymbol(CodabarSymbol.B); b.setCodeText("123456");
getCodabarStopSymbol
in interface IBarCodeControl
public void setCodabarStopSymbol(short value)
Stop symbol (character) of codabar encode type
com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder(); b.serEncodeType(EncodeTypes.CODABAR); b.setCodabarStartSymbol(CodabarSymbol.A); b.setCodabarStopSymbol(CodabarSymbol.B); b.setCodeText("123456");
setCodabarStopSymbol
in interface IBarCodeControl
public CodabarChecksumMode getCodabarChecksumMode()
Get the checksum algorithm for Codabar barcodes. Default value is CodabarChecksum.Mod16. To enable checksum calculation set value EnableChecksum.Yes to property EnableChecksum.
public void setCodabarChecksumMode(CodabarChecksumMode value)
Set the checksum algorithm for Codabar barcodes. Default value is CodabarChecksum.MOD_16. To enable checksum calculation set value EnableChecksum.YES to property EnableChecksum.
[Java] BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setEnableChecksum(EnableChecksum.YES); b.setCodabarChecksumMode(CodabarChecksum.MOD_10); b.setCodeText("0123456789");
@Deprecated public void setCodabarChecksumMode(int value)
Set the checksum algorithm for Codabar barcodes. Default value is CodabarChecksum.MOD_16. To enable checksum calculation set value EnableChecksum.YES to property EnableChecksum.
[Java] BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypes.CODABAR); b.setEnableChecksum(EnableChecksum.YES); b.setCodabarChecksumMode(CodabarChecksum.MOD_10); b.setCodeText("0123456789");
public CustomerInformationInterpretingType getCustomerInformationInterpretingType()
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
getCustomerInformationInterpretingType
in interface IBarCodeControl
public void setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
This sample shows how to change Customer Information of AustralianPost and save a BarCode image.
setCustomerInformationInterpretingType
in interface IBarCodeControl
@Deprecated public void setCustomerInformationInterpretingType(int value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
This sample shows how to change Customer Information of AustralianPost and save a BarCode image.
setCustomerInformationInterpretingType
in interface IBarCodeControl
public ITF14BorderType getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public void setITF14BorderType(ITF14BorderType value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
@Deprecated public void setITF14BorderType(int value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public float getITF14BorderThickness()
Gets an ITF14 border (bearer bar) thickness. Default value is -1, this means that the thickness is calculated automatically
public void setITF14BorderThickness(float value)
Sets an ITF14 border (bearer bar) thickness. Default value is -1, this means that the thickness is calculated automatically
public int getForeColor()
Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode See System.Drawing.Color.
getForeColor
in interface IBarCodeControl
public java.lang.String getForeColorName()
public void setForeColor(int value)
Foreground color of the barcode image, that is, Bar's color of 1D barcode, Module's color of 2D barcode See System.Drawing.Color.
setForeColor
in interface IBarCodeControl
public int getBackColor()
Background color of the barcode image
getBackColor
in interface IBarCodeControl
public java.lang.String getBackColorName()
Gets a background color name of the barcode image
public void setBackColor(int value)
Background color of the barcode image See System.Drawing.Color.
setBackColor
in interface IBarCodeControl
public EnableChecksum getEnableChecksum()
IBarCodeControl
getEnableChecksum
in interface IBarCodeControl
public void setEnableChecksum(EnableChecksum value)
IBarCodeControl
setEnableChecksum
in interface IBarCodeControl
@Deprecated public void setEnableChecksum(int value)
IBarCodeControl
setEnableChecksum
in interface IBarCodeControl
public boolean getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Overwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbologies if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbologies if codetext is incorrect.
public void setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Overwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbologies if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbologies if codetext is incorrect.
public int getColumns()
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417, CodablockF
getColumns
in interface IBarCodeControl
public void setColumns(int value)
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417
setColumns
in interface IBarCodeControl
public int getRows()
BarCode's rows, if setting is illegal then rows will be calculated automatically. Applicable EncodeTypes: Pdf417, DatabarExpandedStacked
public void setRows(int value)
BarCode's rows, if setting is illegal then rows will be calculated automatically. Applicable EncodeType: Pdf417, DatabarExpandedStacked
public DataMatrixEncodeMode getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to Auto
@Deprecated public void setDataMatrixEncodeMode(int value)
Encode mode of Datamatrix barcode, default to Auto
public void setDataMatrixEncodeMode(DataMatrixEncodeMode value)
Encode mode of Datamatrix barcode, default to Auto
public Pdf417CompactionMode getPdf417CompactionMode()
Pdf417 encode type of BarCode's compaction mode, default compaction mode is
getPdf417CompactionMode
in interface IBarCodeControl
@Deprecated public void setPdf417CompactionMode(int value)
Pdf417 encode type of BarCode's compaction mode, default compaction mode is
setPdf417CompactionMode
in interface IBarCodeControl
public void setPdf417CompactionMode(Pdf417CompactionMode value)
Pdf417 encode type of BarCode's compaction mode, default compaction mode is
setPdf417CompactionMode
in interface IBarCodeControl
public boolean getPdf417Truncate()
whether pdf417 encode type of BarCode is truncated (to reduce space)
getPdf417Truncate
in interface IBarCodeControl
public void setPdf417Truncate(boolean value)
whether pdf417 encode type of BarCode is truncated (to reduce space)
setPdf417Truncate
in interface IBarCodeControl
public Pdf417ErrorLevel getPdf417ErrorLevel()
Gets Pdf417 encode type of BarCode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture
getPdf417ErrorLevel
in interface IBarCodeControl
public void setPdf417ErrorLevel(Pdf417ErrorLevel value)
Sets Pdf417 encode type of BarCode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture
setPdf417ErrorLevel
in interface IBarCodeControl
@Deprecated public void setPdf417ErrorLevel(int value)
IBarCodeControl
setPdf417ErrorLevel
in interface IBarCodeControl
public int getMacroPdf417SegmentsCount()
Gets macro pdf417 barcode segments count.
public void setMacroPdf417SegmentsCount(int value)
Sets macro pdf417 barcode segments count.
public int getMacroPdf417SegmentID()
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public void setMacroPdf417SegmentID(int value)
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public int getMacroPdf417FileID()
Gets macro pdf417 barcode's file ID.
public void setMacroPdf417FileID(int value)
Sets macro pdf417 barcode's file ID.
public float getWideNarrowRatio()
Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable EncodeTypes: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
getWideNarrowRatio
in interface IBarCodeControl
public void setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable EncodeTypes: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
setWideNarrowRatio
in interface IBarCodeControl
public java.lang.String getSupplementData()
Supplement data following BarCodes of encode types UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. See SUPPLEMENT_SPACE.
BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTypez.UPCE); b.setCodeText("123456"); b.setSupplementData("11"); b.save("tmp.png");
getSupplementData
in interface IBarCodeControl
public void setSupplementData(java.lang.String value)
Supplement data following BarCodes of encode types UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. See SUPPLEMENT_SPACE.
BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncodeTpes.UPCE); b.setCodeText("123456"); b.setSupplementData("11"); b.save("tmp.png");
setSupplementData
in interface IBarCodeControl
public QRErrorLevel getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
public void setQRErrorLevel(QRErrorLevel value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
@Deprecated public void setQRErrorLevel(int value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
public QREncodeMode getQREncodeMode()
QR encode type of BarCode's encoding mode, default mode is
public void setQREncodeMode(QREncodeMode value)
QR encode type of BarCode's encoding mode, default mode is
@Deprecated public void setQREncodeMode(int value)
QR encode type of BarCode's encoding mode, default mode is
public QREncodeType getQREncodeType()
QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR.
Example how to encode MicroQRBarCodeBuilder builder = new BarCodeBuilder(); builder.setEncodeType(EncodeTypes.QR); builder.setQREncodeMode(QREncodeMode.AUTO); builder.setQREncodeType(QREncodeType.AUTO); builder.setCodeText("12345TEXT"); builder.setQRErrorLevel(QRErrorLevel.LEVEL_L); BufferedImage lBmp = builder.generateBarCodeImage();Example how to encode QRBarCodeBuilder builder = new BarCodeBuilder(); builder.setEncodeType(EncodeTypes.QR); builder.setQREncodeMode(QREncodeMode.AUTO); builder.setQREncodeType(QREncodeType.FORCE_QR); builder.setCodeText("12345TEXT"); builder.setQRErrorLevel(QRErrorLevel.LEVEL_L); BufferedImage lBmp = builder.generateBarCodeImage();
public void setQREncodeType(QREncodeType value)
@Deprecated public void setQREncodeType(int value)
public int getECIEncoding()
public void setECIEncoding(int value)
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Currently, it is used only for QR 2D barcode.
Example how to use ECI encodingBarCodeBuilder builder = new BarCodeBuilder(); builder.setEncodeType(EncodeTypes.QR); builder.setQREncodeMode(QREncodeMode.ECI_ENCODING); builder.setQREncodeType(QREncodeType.FORCE_QR); builder.setECIEncoding(ECIEncodings.UTF8); builder.setCodeText("12345TEXT"); builder.setQRErrorLevel(QRErrorLevel.LEVEL_L); Bitmap lBmp = builder.generateBarCodeImage();
public int getMaxiCodeEncodeMode()
Gets a MaxiCode encode mode
public void setMaxiCodeEncodeMode(int value)
Sets a MaxiCode encode mode
public int getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
public void setAztectErrorLevel(int value)
Level of error corection of Aztect types of barcode. value should between 10 to 95
public int getDotCodeMask()
Mask of Dotcode barcode, default to Auto
public void setDotCodeMask(int value)
Mask of Dotcode barcode, default to Auto
public AztecSymbolMode getAztecSymbolMode()
Get a Aztec Symbol mode. Default is Auto mode.
@Deprecated public java.lang.String getAztecSymbolModeName()
Gets the name of stop symbol (character) of codabar symbology
public void setAztecSymbolMode(AztecSymbolMode value)
Set a Aztec Symbol mode. Default is Auto mode.
BarCodeBuilder b = new BarCodeBuilder(); b.setCodeText("Aztec Full-range text"); b.setEncodeType(EncodeTypes.AZTEC); b.setAztecSymbolMode(AztecSymbolMode.FULL_RANGE); b.save("test.png");
@Deprecated public void setAztecSymbolMode(int value)
Set a Aztec Symbol mode. Default is Auto mode.
BarCodeBuilder b = new BarCodeBuilder(); b.setCodeText("Aztec Full-range text"); builder.setEncodeType(EncodeTypes.QR); b.setAztecSymbolMode(AztecSymbolMode.FULL_RANGE); b.save("test.png");
public boolean getAlwaysShowChecksum()
Always display checksum digit in the humanreadable text for Code128 and GS1Code128 barcodes.
public void setAlwaysShowChecksum(boolean value)
Always display checksum digit in the humanreadable text for Code128 and GS1Code128 barcodes.
public void dispose()
Clean up any resources being used.
public Bitmap generateBarCodeImage()
Generate the BarCode image under current settings
public void rotate()
Rotate barcode image clockwise for 90 degrees
rotate
in interface IBarCodeControl
public void rotate(float angle)
Rotate barcode image clockwise
rotate
in interface IBarCodeControl
angle
- Rotation Anglepublic void rotate(RotationDirection direction, float angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- rotation directionangle
- rotation angle@Deprecated public void rotate(int direction, float angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- rotation directionangle
- rotation anglepublic android.util.SizeF getMinimumBarCodeSize()
GraphicsUnit
, of this BarCode.android.util.SizeF
class that represents the minimum width and height, in current GraphicsUnit
, of this BarCode.public Bitmap getOnlyBarCodeImage()
Gets the only barcode image. Requires license.
BarCodeException
- Throws exception if no license set.public Bitmap getOnlyBarCodeImage(int scaleFactor)
Gets the only barcode image. Requires license.
scaleFactor
- Minimal value of scale factor is 1. Not limited by the code.BarCodeException
- Throws exception if no license set.public Bitmap getCustomSizeBarCodeImage(android.util.Size customBarCodeSize, boolean allowSpaceAround)
Gets the scaled barcode image.
customBarCodeSize
- BarCode full image size. Default Graphics Unit: MILLIMETER.allowSpaceAround
- if set to true} allow space around the barcode.public Bitmap getCustomSizeBarCodeImage(float customBarCodeWidth, float customBarCodeHeight, boolean allowSpaceAround)
customBarCodeWidth
- arCode full image width. Default Graphics Unit: MILLIMETER.customBarCodeHeight
- BarCode full image height. Default Graphics Unit: MILLIMETER.allowSpaceAround
- if set to public void save(java.lang.String filename) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathjava.io.IOException
@Deprecated public void save(java.io.OutputStream stream, int format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
stream
- Save to this OutputStreamformat
- Specifies the file format of the image.java.io.IOException
public void save(java.io.OutputStream stream, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
stream
- Save to this OutputStreamformat
- Specifies the file format of the image.java.io.IOException
@Deprecated public void save(java.lang.String filename, int format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
format
- Specifies the file format of the image.
format
- filename
- save to this file pathjava.io.IOException
@Deprecated public void save(java.lang.String filename, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
format
- Specifies the file format of the image.
format
- filename
- save to this file pathjava.io.IOException
public void save(java.io.OutputStream stream, Bitmap.CompressFormat format) throws java.io.IOException
Save BarCodeImage to stream in specific format
save
in interface IBarCodeControl
stream
- java.io.OutputStreamformat
- Specifies the file format of the image.java.io.IOException
public void save(java.lang.String filename, Bitmap.CompressFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathformat
- Specifies the file format of the image. Enumerated in BarCodeImageFormat.java.io.IOException
public java.lang.String toString()
Overridden method representing BarCodeBuilder as a string.
toString
in class java.lang.Object
public boolean getFilledBars()
Only for 1D barcodes. Gets a value indicating whether bars filled. Default value is true.
Value:true
if bars filled; otherwise, false
.public void setFilledBars(boolean value)
Only for 1D barcodes. Sets a value indicating whether bars filled. Default value is true.
Value:true
if bars filled; otherwise, false
.public DataMatrixEccType getDatamatrixEcc()
Gets a Datamatri ECC type. Default value is ECC200
public void setDatamatrixEcc(DataMatrixEccType value)
Sets a Datamatri ECC type. Default value is ECC200
@Deprecated public void setDatamatrixEcc(int value)
Sets a Datamatri ECC type. Default value is ECC200
public float getBarWidthReduction()
Bar width reduction. Default Graphics Unit: Millimeter
(to change see System.Drawing.GraphicsUnitGraphicsUnit
).
public void setBarWidthReduction(float value)
Bar width reduction. Default Graphics Unit: Millimeter
(to change see System.Drawing.GraphicsUnitGraphicsUnit
).
public boolean isOverridedDimensionX()
Check if x dimension is specified by the user
<b>true</b>
in case x dimension is specified by the user; <b>false</b>
otherwise.