|
Method Summary |
java.awt.Image |
generateBarCodeImage()
Returns an Image instance of the barcode image |
boolean |
getAutoSize()
Gets whether auto sizing the barcode image or not. |
int |
getAztecErrorLevel()
Gets Aztec barcode's error correction level |
java.awt.Color |
getBackColor()
Gets the background color of the barcode image, default to white |
float |
getBarHeight()
Gets the bar's height for 1D barcodes, measured in com.aspose.barcode.GraphicsUnit |
java.awt.Color |
getBorderColor()
Gets border's color of the barcode image |
boolean |
getBorderVisible()
Gets whether to draw the border or not |
float |
getBorderWidth()
Gets border's width of x barcode image. |
Caption |
getCaptionAbove()
Gets CaptionAbove of the barcode image. |
Caption |
getCaptionBelow()
Gets the caption below the barcode image |
int |
getCodabarStartSymbol()
Gets the start symbol for codabar types of barcode |
int |
getCodabarStopSymbol()
Gets the stop symbol of codabar types of barcode |
int |
getCode128Set()
Gets code set for code128 types of barcode |
java.lang.String |
getCodeText()
Gets the code text of the barcode, code text is the data encoded into the barcode image
Some barcode symbologies may require certain types of code text, such as UPCA and UPCE require numbers only |
java.awt.Color |
getCodeTextColor()
Gets the human readable code text's color |
java.awt.Font |
getCodeTextFont()
Gets the code text's font of x barcode. |
boolean |
getCodeTextVisible()
Gets whether or not to show the human readable code text |
int |
getDataMatrixMode()
Gets Datamatrix barcode's encode mode. |
boolean |
getEnableChecksum()
Gets whether checksum is enabled. |
java.awt.Color |
getForeColor()
Gets the foreground color of the barcode image, if it's for web servlet render
caption's color and code text's color may be all reduced to one color |
int |
getGraphicsUnit()
Gets the measurement of graphics unit, default to millimeter |
float |
getHeight()
Gets the height of x barcode image. |
int |
getImageQuality()
Gets the image quality of the barcode image, it's not recommended to use
the anti alias setting, that will make the barcode image harder to read by machine |
int |
getITF14BorderType()
Gets ITF14 barcode's border type |
int |
getMacroPDF417FileID()
Gets macro pdf417 barcode's file ID. |
boolean |
getMacroPDF417LastSegment()
Gets whether this macro pdf417 barcode is the last segment. |
int |
getMacroPDF417SegmentID()
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1. |
Margins |
getMargins()
Gets the marginal size of an barcode image, the area around the barcode. |
float |
getPDF417AspectRatio()
Gets PDF417 barcode's module height to width ratio |
int |
getPDF417Columns()
Gets columns of PDF417 barcode, illegal settings will be ignored |
int |
getPDF417CompactMode()
Gets compaction mode of PDF417 barcode, available modes are PDF417CompactMode.AUTO, PDF417CompactMode.BINARY, PDF417CompactMode.NUMERIC, PDF417CompactMode.TEXT |
int |
getPDF417ErrorLevel()
Gets error correction level of PDF417 barcode, from LEVEL0 to LEVEL8, LEVEL 0 for no error correction, LEVEL8 for max error correction. |
int |
getPDF417Rows()
Gets rows of PDF417 barcode, illegal settings will be ignored |
boolean |
getPDF417Truncated()
Gets whether PDF417 barcode is truncated, that is, the right guard area om |
float |
getPlanetShortBarHeight()
Gets the short bar's height of Planet type of barcode, to set up tall bar's height, use setBarHeight and getBarHeight. |
float |
getPostnetShortBarHeight()
Gets the short bar's height of Postnet type of barcode, to set up tall bar's height, use setBarHeight and getBarHeight. |
int |
getQRErrorLevel()
Gets QR barcode's error correction level. |
Resolution |
getResolution()
Gets the resolution of the barcode image |
float |
getRotationAngle()
Gets the rotation angle of the barcode image defaults to 0 degree |
float |
getSupplementSpace()
Gets the space between main barcode and the supplement barcode |
java.lang.String |
getSupplementText()
Gets the supplement barcode's code text. |
java.lang.String[] |
getSupportedImageFormats()
Gets supporting image format (suffixes) by Save method |
long |
getSymbology()
Gets the symbology of BarCodeBuilder. |
float |
getWideNarrowRatio()
Gets wide bars to narrow bars ratio for some types of one dimensional barcode |
float |
getWidth()
Gets the width of x barcode image. |
float |
getXDimension()
Gets the width of x smallest bar, or the smallest module's width of 2D barcodes
measured in GraphicsUnit |
float |
getYDimension()
Gets the height of x smallest module of 2D barcodes. |
void |
render(java.awt.Graphics g)
Renders barcode by Graphics g |
void |
render(java.awt.Graphics2D g)
Renders barcode by Graphics2D g |
void |
render(javax.servlet.http.HttpServletResponse response)
Renders barcode to servlet |
void |
save(java.io.File file,
java.lang.String imageFormat)
Saves the barcode image to file |
void |
save(java.lang.String filename)
Saves the barcode image to file |
void |
save(java.lang.String filename,
java.lang.String imageFormat)
Saves the barcode image to file |
void |
setAutoSize(boolean value)
Sets whether auto sizing the barcode image or not. |
void |
setAztecErrorLevel(int value)
Sets Aztec barcode's error correction level |
void |
setBackColor(java.awt.Color value)
Sets the background color of the barcode image, default to white |
void |
setBarHeight(float value)
Sets the bar's height for 1D barcodes, measured in com.aspose.barcode.GraphicsUnit |
void |
setBorderColor(java.awt.Color value)
Sets border's color of the barcode image |
void |
setBorderVisible(boolean value)
Sets whether to draw the border or not |
void |
setBorderWidth(float value)
Sets border's width of x barcode image. |
void |
setCaptionAbove(Caption value)
Sets the CaptionAbove of the barcode image. |
void |
setCaptionBelow(Caption value)
Sets the caption below the barcode image |
void |
setCodabarStartSymbol(int value)
Sets the start symbol for codabar types of barcode |
void |
setCodabarStopSymbol(int value)
Sets the stop symbol of codabar types of barcode |
void |
setCode128Set(int value)
Sets code set for code128 types of barcode |
void |
setCodeText(java.lang.String value)
Sets the code text of the barcode, code text is the data encoded into the barcode image
If code text is null or empty, exception will be thrown. |
void |
setCodeTextColor(java.awt.Color value)
Sets the human readable code text's color |
void |
setCodeTextFont(java.awt.Font value)
Sets the code text's font of x barcode. |
void |
setCodeTextVisible(boolean value)
Sets whether or not to show the human readable code text, some symbologies of
barcode may ignore this setting |
void |
setDataMatrixMode(int value)
Sets Datamatrix barcode's encode mode |
void |
setEnableChecksum(boolean value)
Sets wether checksum is enabled. |
void |
setForeColor(java.awt.Color value)
Gets the foreground color of the barcode image, if it's for web servlet render
caption's color and code text's color may be all reduced to one color |
void |
setGraphicsUnit(int value)
Sets the measurement of graphics unit, default to millimeter |
void |
setHeight(float value)
Sets the height of x barcode image, if auto size is set to true, Width and Height
settings will be ignored |
void |
setImageQuality(int value)
Sets the image quality of the barcode image, it's not recommended to use the
anti alias setting, that will make the barcode image harder to read by machine |
void |
setITF14BorderType(int value)
Sets ITF14 barcode's border type |
void |
setMacroPDF417FileID(int macroPDF417FileID)
Sets macro pdf417 barcode's file ID. |
void |
setMacroPDF417LastSegment(boolean isMacroPDF417LastSegment)
Getswhether this macro pdf417 barcode is the last segment. |
void |
setMacroPDF417SegmentID(int macroPDF417SegmentID)
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1. |
void |
setMargins(Margins value)
Sets the marginal size of an barcode image, the area around the barcode. |
void |
setPDF417AspectRatio(float value)
Sets PDF417 barcode's module height to width ratio |
void |
setPDF417Columns(int value)
Sets columns of PDF417 barcode, illegal settings will be ignored |
void |
setPDF417CompactMode(int value)
Sets compaction mode of PDF417 barcode, available modes are PDF417CompactMode.AUTO, PDF417CompactMode.BINARY, PDF417CompactMode.NUMERIC, PDF417CompactMode.TEXT |
void |
setPDF417ErrorLevel(int value)
Sets error correction level of PDF417 barcode, from LEVEL0 to LEVEL8, LEVEL 0 for no error correction, LEVEL8 for max error correction. |
void |
setPDF417Rows(int value)
Sets rows of PDF417 barcode, illegal settings will be ignored |
void |
setPDF417Truncated(boolean value)
Sets whether PDF417 barcode is truncated. |
void |
setPlanetShortBarHeight(float value)
Sets the short bar's height of Planet type of barcode, to set up tall bar's height, use setBarHeight and getBarHeight. |
void |
setPostnetShortBarHeight(float value)
Sets the short bar's height of Postnet type of barcode, to set up tall bar's height, use setBarHeight and getBarHeight method. |
void |
setQRErrorLevel(int value)
Sets QR barcode's error correction level. |
void |
setResolution(Resolution value)
Sets the resolution of the barcode image |
void |
setRotationAngle(float value)
Sets the rotation angle of the barcode image, default to 0 degree, if rotation
angle not not equal to 0, 90, 180 or 270, the barcode maybe jagged, setImageQuality
to anti-alias to solve this problem |
void |
setSupplementSpace(float value)
Sets the space between main barcode and the supplement barcode |
void |
setSupplementText(java.lang.String value)
Sets the supplement barcode's code text. |
void |
setSymbology(long value)
Sets the symbology of BarCodeBuilder. |
void |
setWideNarrowRatio(float value)
Sets wide bars to narrow bars ratio for some types of one dimensional barcode, default to 3.0 |
void |
setWidth(float value)
Sets the width of x barcode image, if auto size is set to true, Width and Height
settings will be ignored |
void |
setXDimension(float value)
Sets the width of x smallest bar, or the smallest module's width of 2D barcodes
measured in GraphicsUnit |
void |
|