public class BarCodeBuilder extends Component implements IBarCodeControl
BarCodeBuilder for backend barcode images generation.
See Aspose.BarCode.Windows.Forms.BarCodeControl
.
See Aspose.BarCode.Web.UI.BarCodeWebControl
.
Modifier and Type | Field and Description |
---|---|
static char |
EAN_128_FNC_1 |
Constructor and Description |
---|
BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128,
default CodeText is 12345678
|
BarCodeBuilder(java.lang.String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128
|
BarCodeBuilder(java.lang.String CodeText,
long type)
BarCodeBuilder's constructer
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clean up any resources being used.
|
void |
dispose(boolean disposing) |
Bitmap |
generateBarCodeBufferedImage()
Generate the BarCode image under current settings
|
boolean |
getAlwaysShowChecksum()
Always display checksum digit in the humanreadable text for Code128 and EAN128 barcodes.
|
float |
getAspectRatio()
2D BarCode's module's height/width ratio (yDimension/xDimension).
|
int |
getAustralianPosteParcelCodeSet()
Australian Post Domestic eParcel barcode symbology type of barcode's code set, default to AustralianPosteParcelCodeSet.Auto"
See
Aspose.BarCode.Code128CodeSet . |
int |
getAustraliaPostFormatControlCode()
Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard"
See
Aspose.BarCode.AustraliaPostFormatControlCode . |
boolean |
getAutoSize()
Gets auto size
|
int |
getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
|
Color |
getBackColor()
Background color of the barcode image
See
System.Drawing.Color . |
java.awt.image.BufferedImage |
getBarCodeBufferedImage()
Get the BarCode image under current settings
|
float |
getBarHeight()
height of 1D barcodes' bars.
|
Color |
getBorderColor()
Gets BarCode Image's border's color
|
int |
getBorderDashStyle()
Gets BarCode Image's border's style
|
boolean |
getBorderVisible()
whether BarCode Image's border is visible
|
float |
getBorderWidth()
BarCode Image's border's width
Default Graphics Unit: Millimeter
See
BorderVisible . |
Caption |
getCaptionAbove()
Caption Above the BarCode image.
|
Caption |
getCaptionBelow()
Caption Below the BarCode image.
|
short |
getCodabarStartSymbol()
Gets start symbol (character) of codabar symbology
|
short |
getCodabarStopSymbol()
Gets stop symbol (character) of codabar symbology
|
int |
getCode128CodeSet()
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto"
See
Aspose.BarCode.Code128CodeSet . |
int |
getCodeLocation()
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText.
|
java.lang.String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions
|
int |
getCodeTextAlignment()
Gets the alignment of the code text
|
Color |
getCodeTextColor()
Specify the displaying CodeText's Color
|
Font |
getCodeTextFont()
Specify the displaying CodeText's font
|
float |
getCodeTextSpace()
Space between the CodeText and the BarCode.
|
int |
getColumns()
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable SymbologyType: Pdf417
|
Bitmap |
GetCustomSizeBarCodeImage(Size customBarCodeSize) |
int |
getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to Auto
see
Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode . |
java.lang.String |
getDisplay2DText()
Gets the text will displayed on the barcode's image.
|
int |
getEAN128EncodeMode()
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI
See
Aspose.BarCode.EAN128EncodeMode . |
int |
getEnableChecksum()
Enable checksum during generation for 1D barcodes.
|
boolean |
getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
|
Color |
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 . |
int |
getGraphicsUnit()
Measurement of various properties such as Width, Height etc.
|
float |
getImageHeight()
Gets image width
|
int |
getImageQuality()
Gets image quality
|
float |
getImageWidth()
Gets image width
|
int |
getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
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.
|
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
|
Bitmap |
GetOnlyBarCodeImage(int scaleFactor) |
int |
getPdf417CompactionMode()
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is
<bode>Auto</bode>
See Aspose.BarCode.Pdf417CompactionMode . |
int |
getPdf417ErrorLevel()
Gets Pdf417 symbology 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()
whether pdf417 symbology type of BarCode is truncated (to reduce space)
|
float |
getPlanetShortBarHeight()
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
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).
|
java.lang.String |
getPrinterName()
Choose printer, if not specified, Print() method will choose the first available printer
|
int |
getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is
<bode>Auto</bode>
See Aspose.BarCode.QREncodeMode . |
int |
getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode.
|
Resolution |
getResolution()
Gets the resolution of the BarCode image
|
int |
getRotationAngle()
Obsoleted, Use RotationAngleF instead
|
float |
getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g.
|
int |
getRows()
2D BarCode's rows, if setting is illegal then rows will be calculated automatically.
|
java.lang.String |
getSupplementData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5.
|
float |
getSupplementSpace()
Gets supplement space
|
long |
getSymbologyType()
Gets symbology type
|
int |
getTextRenderingHint()
Specifies the quality of text rendering.
|
float |
getWideNarrowRatio()
Wide bars to Narrow bars ratio for some 1D BarCode.
|
float |
getxDimension()
x-dimension, smallest width unit of BarCode's bars or spaces.
|
float |
getyDimension()
y-dimension, smallest height unit of 2D BarCode's modules.
|
static boolean |
isLicensed()
Gets a value indicating whether generation module is licensed.
|
void |
rotate()
Rotate barcode image clockwise for 90 degrees
|
void |
rotate(float angle)
Rotate barcode image clockwise
|
void |
rotate(int angle)
Rotate the barcode image
|
void |
rotate(int direction,
float angle)
Rotate the barcode image
|
void |
rotate(int direction,
int angle)
Rotate the barcode image
|
void |
save(java.io.InputStream stream,
ImageFormat format)
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename)
Save BarCodeImage to specific file in specific format
|
void |
save(java.lang.String filename,
ImageFormat format)
Save BarCodeImage to specific file in specific format
|
void |
saveImageAs(java.io.InputStream stream,
ImageFormat format) |
void |
saveImageAs(java.lang.String filename)
Save the barcode image
|
void |
setAlwaysShowChecksum(boolean value)
Sets parametr AlwaysShowChecksum.
|
void |
setAspectRatio(float value)
Sets aspect ratio
|
void |
setAustralianPosteParcelCodeSet(int value)
Australian Post Domestic eParcel barcode symbology type of barcode's code set, default to AustralianPosteParcelCodeSet.Auto"
See
Aspose.BarCode.Code128CodeSet . |
void |
setAustraliaPostFormatControlCode(int value)
Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard"
See
Aspose.BarCode.AustraliaPostFormatControlCode . |
void |
setAutoSize(boolean value)
Sets auto size
|
void |
setAztectErrorLevel(int value) |
void |
setBackColor(Color value)
Background color of the barcode image
See
System.Drawing.Color . |
void |
setBarHeight(float value)
Sets bar height
|
void |
setBorderColor(Color value)
Sets BarCode Image's border's color
|
void |
setBorderDashStyle(int value)
Sets Image's border's style
|
void |
setBorderVisible(boolean value)
whether BarCode Image's border is visible
|
void |
setBorderWidth(float value)
BarCode Image's border's width
Default Graphics Unit: Millimeter
See
BorderVisible . |
void |
setCaptionAbove(Caption value)
Sets caption above
|
void |
setCaptionBelow(Caption value)
Sets caption below
|
void |
setCodabarStartSymbol(short value)
Sets start symbol (character) of codabar symbology
|
void |
setCodabarStopSymbol(short value)
Sets stop symbol (character) of codabar symbology
|
void |
setCode128CodeSet(int value)
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto"
See
Aspose.BarCode.Code128CodeSet . |
void |
setCodeLocation(int value)
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText.
|
void |
setCodeText(byte[] codeText)
Set the data to be encoded.
|
void |
setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions
|
void |
setCodeTextAlignment(int value)
Sets the alignment of the code text
|
void |
setCodeTextSpace(float value)
Space between the CodeText and the BarCode.
|
void |
setColumns(int value)
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
appliable SymbologyType: Pdf417
|
void |
setDataMatrixEncodeMode(int value)
Encode mode of Datamatrix barcode, default to Auto
see
Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode . |
void |
setDisplay2DText(java.lang.String value)
Sets the text will displayed on the barcode's image.
|
void |
setEAN128EncodeMode(int value)
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI
See
Aspose.BarCode.EAN128EncodeMode . |
void |
setEnableChecksum(int value)
Enable checksum during generation for 1D barcodes.
|
void |
setEnableEscape(boolean value) |
void |
setForeColor(Color 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 . |
void |
setGraphicsUnit(int value)
Sets graphics unit
|
void |
setImageHeight(float value)
Sets image height
|
void |
setImageQuality(int value)
Sets image quality
|
void |
setImageWidth(float value)
Sets image width
|
void |
setITF14BorderType(int value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
void |
setMacroPdf417FileID(int value)
Sets macro pdf417 barcode's file ID.
|
void |
setMacroPdf417LastSegment(boolean value)
Sets whether this macro pdf417 barcode is the last segment.
|
void |
setMacroPdf417SegmentID(int value)
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
|
void |
setPdf417CompactionMode(int value)
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is
<bode>Auto</bode>
See Aspose.BarCode.Pdf417CompactionMode . |
void |
setPdf417ErrorLevel(int value)
Sets Pdf417 symbology 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)
whether pdf417 symbology type of BarCode is truncated (to reduce space)
|
void |
setPlanetShortBarHeight(float value)
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
|
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).
|
void |
setPrinterName(java.lang.String value)
Sets printer name
|
void |
setQREncodeMode(int value)
QR symbology type of BarCode's encoding mode, default mode is
<bode>Auto</bode>
See Aspose.BarCode.QREncodeMode . |
void |
setQRErrorLevel(int value)
Level of Reed-Solomon error correction for QR barcode.
|
void |
setResolution(Resolution value)
Sets the resolution of the BarCode image
|
void |
setRotationAngle(int value)
Sets rotation angle
|
void |
setRotationAngleF(float value)
Sets rotation angleF
|
void |
setRows(int value)
2D BarCode's rows, if setting is illegal then rows will be calculated automatically.
|
void |
setSupplementData(java.lang.String value)
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5.
|
void |
setSupplementSpace(float value)
Sets supplement space
|
void |
setSymbologyType(long value)
Sets symbology type
|
void |
setTextRenderingHint(int value)
Specifies the quality of text rendering.
|
void |
setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio for some 1D BarCode.
|
void |
setxDimension(float value)
Sets xDimension
|
void |
setyDimension(float value)
Sets yDimension
|
java.lang.String |
toString()
overried to string method
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBarCodeImage, saveInternal, setCodeTextColor, setCodeTextFont
public static final char EAN_128_FNC_1
public BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678
public BarCodeBuilder(java.lang.String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128
CodeText
- string text data to be encodedpublic BarCodeBuilder(java.lang.String CodeText, long type)
BarCodeBuilder's constructer
CodeText
- string text data to be encodedtype
- BarCode's type: Aspose.BarCode.SymbologyTypepublic void dispose()
Clean up any resources being used.
public void dispose(boolean disposing)
public Bitmap generateBarCodeBufferedImage()
Generate the BarCode image under current settings
public boolean getAlwaysShowChecksum()
Always display checksum digit in the humanreadable text for Code128 and EAN128 barcodes.
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.
See xDimension
.
See yDimension
.
getAspectRatio
in interface IBarCodeControl
public int getAustralianPosteParcelCodeSet()
Australian Post Domestic eParcel barcode symbology type of barcode's code set, default to AustralianPosteParcelCodeSet.Auto"
See Aspose.BarCode.Code128CodeSet
.
public int getAustraliaPostFormatControlCode()
Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard"
See Aspose.BarCode.AustraliaPostFormatControlCode
.
getAustraliaPostFormatControlCode
in interface IBarCodeControl
public boolean getAutoSize()
Gets auto size
getAutoSize
in interface IBarCodeControl
public int getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
public Color getBackColor()
Background color of the barcode image
See System.Drawing.Color
.
getBackColor
in interface IBarCodeControl
public java.awt.image.BufferedImage getBarCodeBufferedImage()
Get the BarCode image under current settings
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
See yDimension
.
getBarHeight
in interface IBarCodeControl
public Color getBorderColor()
Gets BarCode Image's border's color
getBorderColor
in interface IBarCodeControl
public int getBorderDashStyle()
Gets BarCode Image's border's style
getBorderDashStyle
in interface IBarCodeControl
public boolean getBorderVisible()
whether BarCode Image's border is visible
getBorderVisible
in interface IBarCodeControl
public float getBorderWidth()
BarCode Image's border's width
Default Graphics Unit: Millimeter
See BorderVisible
.
See BorderDashStyle
.
See BorderColor
.
getBorderWidth
in interface IBarCodeControl
public Caption getCaptionAbove()
Caption Above the BarCode image. See Caption
.
CaptionAbove contains the following properties:
CaptionAbove.Font,
CaptionAbove.ForeColor,
CaptionAbove.Space,
CaptionAbove.Visible,
CaptionAbove.Text,
CaptionAbove.TextAlign
getCaptionAbove
in interface IBarCodeControl
public Caption getCaptionBelow()
Caption Below the BarCode image. See Caption
.
CaptionBelow contains the following properties:
CaptionBelow.Font,
CaptionBelow.ForeColor,
CaptionBelow.Space,
CaptionBelow.Visible,
CaptionBelow.Text,
CaptionBelow.TextAlign
getCaptionBelow
in interface IBarCodeControl
public short getCodabarStartSymbol()
Gets start symbol (character) of codabar symbology
getCodabarStartSymbol
in interface IBarCodeControl
public short getCodabarStopSymbol()
Gets stop symbol (character) of codabar symbology
getCodabarStopSymbol
in interface IBarCodeControl
public int getCode128CodeSet()
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto"
See Aspose.BarCode.Code128CodeSet
.
getCode128CodeSet
in interface IBarCodeControl
public int getCodeLocation()
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText.
getCodeLocation
in interface IBarCodeControl
public java.lang.String getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions
getCodeText
in interface IBarCodeControl
public int getCodeTextAlignment()
Gets the alignment of the code text
getCodeTextAlignment
in interface IBarCodeControl
public Color getCodeTextColor()
Specify the displaying CodeText's Color
getCodeTextColor
in interface IBarCodeControl
public Font getCodeTextFont()
Specify the displaying CodeText's font
getCodeTextFont
in interface IBarCodeControl
public float getCodeTextSpace()
Space between the CodeText and the BarCode.
Default Graphics Unit: Millimeter
See CodeText
.
See CodeLocation
.
See CodeTextFont
.
See CodeTextColor
.
See CodeTextAlignment
.
getCodeTextSpace
in interface IBarCodeControl
public int getColumns()
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417
getColumns
in interface IBarCodeControl
public Bitmap GetCustomSizeBarCodeImage(Size customBarCodeSize)
public int getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to Auto
see Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
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 int getEAN128EncodeMode()
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI
See Aspose.BarCode.EAN128EncodeMode
.
public int getEnableChecksum()
Enable checksum during generation for 1D barcodes.
Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
getEnableChecksum
in interface IBarCodeControl
public boolean getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
getEnableEscape
in interface IBarCodeControl
public Color 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 int getGraphicsUnit()
Measurement of various properties such as Width, Height etc.
Default GraphicsUnit: Millimeter
See System.Drawing.GraphicsUnit
.
getGraphicsUnit
in interface IBarCodeControl
public float getImageHeight()
Gets image width
getImageHeight
in interface IBarCodeControl
public int getImageQuality()
Gets image quality
getImageQuality
in interface IBarCodeControl
public float getImageWidth()
Gets image width
getImageWidth
in interface IBarCodeControl
public int getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public int getMacroPdf417FileID()
Gets macro pdf417 barcode's file ID.
public boolean getMacroPdf417LastSegment()
Gets whether this macro pdf417 barcode is the last segment.
public int getMacroPdf417SegmentID()
Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
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 Bitmap GetOnlyBarCodeImage(int scaleFactor)
public int getPdf417CompactionMode()
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode>
See Aspose.BarCode.Pdf417CompactionMode
.
getPdf417CompactionMode
in interface IBarCodeControl
public int getPdf417ErrorLevel()
Gets Pdf417 symbology 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 boolean getPdf417Truncate()
whether pdf417 symbology type of BarCode is truncated (to reduce space)
getPdf417Truncate
in interface IBarCodeControl
public float getPlanetShortBarHeight()
Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
see changing See System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: See BarHeightBarHeight
.
getPlanetShortBarHeight
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 java.lang.String getPrinterName()
Choose printer, if not specified, Print() method will choose the first available printer
public int getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode>
See Aspose.BarCode.QREncodeMode
.
public int getQRErrorLevel()
Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see Aspose.BarCode.QRErrorLevelQRErrorLevel
.
public Resolution getResolution()
Gets the resolution of the BarCode image
getResolution
in interface IBarCodeControl
public int getRotationAngle()
Obsoleted, Use RotationAngleF instead
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 int getRows()
2D BarCode's rows, if setting is illegal then rows will be calculated automatically. appliable SymbologyType: Pdf417
public java.lang.String getSupplementData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5.
See Aspose.BarCode.Symbology
.
See SupplementSpace
.
getSupplementData
in interface IBarCodeControl
public float getSupplementSpace()
Gets supplement space
getSupplementSpace
in interface IBarCodeControl
public long getSymbologyType()
Gets symbology type
getSymbologyType
in interface IBarCodeControl
public int getTextRenderingHint()
Specifies the quality of text rendering.
getTextRenderingHint
in interface IBarCodeControl
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 symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
See Aspose.BarCode.Symbology
.
getWideNarrowRatio
in interface IBarCodeControl
public float getxDimension()
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
See yDimension
.
See AutoSize
.
See BarHeight
.
getxDimension
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
See xDimension
.
See BarHeight
.
getyDimension
in interface IBarCodeControl
public static boolean isLicensed()
Gets a value indicating whether generation module is licensed.
Value:true
if generation module is licensed; otherwise, false
.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(int angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
angle
- either 0, 90, 180 or 270 degreepublic void rotate(int direction, float angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- rotation directionangle
- rotation anglepublic void rotate(int direction, int angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- specify clockwise or anti-clockwiseangle
- either 0, 90, 180 or 270 degreepublic void save(java.io.InputStream stream, ImageFormat format)
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
public void save(java.lang.String filename)
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathpublic void save(java.lang.String filename, ImageFormat format)
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathformat
- System.Drawing.Imaging.ImageFormatpublic void saveImageAs(java.io.InputStream stream, ImageFormat format)
public void saveImageAs(java.lang.String filename)
Save the barcode image
filename
- Full path of the target image filepublic void setAlwaysShowChecksum(boolean value)
Sets parametr AlwaysShowChecksum.
public void setAspectRatio(float value)
Sets aspect ratio
setAspectRatio
in interface IBarCodeControl
public void setAustralianPosteParcelCodeSet(int value)
Australian Post Domestic eParcel barcode symbology type of barcode's code set, default to AustralianPosteParcelCodeSet.Auto"
See Aspose.BarCode.Code128CodeSet
.
public void setAustraliaPostFormatControlCode(int value)
Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard"
See Aspose.BarCode.AustraliaPostFormatControlCode
.
setAustraliaPostFormatControlCode
in interface IBarCodeControl
public void setAutoSize(boolean value)
Sets auto size
setAutoSize
in interface IBarCodeControl
public void setAztectErrorLevel(int value)
public void setBackColor(Color value)
Background color of the barcode image
See System.Drawing.Color
.
setBackColor
in interface IBarCodeControl
public void setBarHeight(float value)
Sets bar height
setBarHeight
in interface IBarCodeControl
public void setBorderColor(Color value)
Sets BarCode Image's border's color
setBorderColor
in interface IBarCodeControl
public void setBorderDashStyle(int value)
Sets Image's border's style
setBorderDashStyle
in interface IBarCodeControl
public void setBorderVisible(boolean value)
whether BarCode Image's border is visible
setBorderVisible
in interface IBarCodeControl
public void setBorderWidth(float value)
BarCode Image's border's width
Default Graphics Unit: Millimeter
See BorderVisible
.
See BorderDashStyle
.
See BorderColor
.
setBorderWidth
in interface IBarCodeControl
public void setCaptionAbove(Caption value)
Sets caption above
setCaptionAbove
in interface IBarCodeControl
public void setCaptionBelow(Caption value)
Sets caption below
setCaptionBelow
in interface IBarCodeControl
public void setCodabarStartSymbol(short value)
Sets start symbol (character) of codabar symbology
setCodabarStartSymbol
in interface IBarCodeControl
public void setCodabarStopSymbol(short value)
Sets stop symbol (character) of codabar symbology
setCodabarStopSymbol
in interface IBarCodeControl
public void setCode128CodeSet(int value)
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto"
See Aspose.BarCode.Code128CodeSet
.
setCode128CodeSet
in interface IBarCodeControl
public void setCodeLocation(int value)
Specify the displaying CodeText's Location, set to CodeLocation.None to hide CodeText.
setCodeLocation
in interface IBarCodeControl
public void setCodeText(byte[] codeText)
Set the data to be encoded.
codeText
- The data to be encoded.public void setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions
setCodeText
in interface IBarCodeControl
public void setCodeTextAlignment(int value)
Sets the alignment of the code text
setCodeTextAlignment
in interface IBarCodeControl
public void setCodeTextSpace(float value)
Space between the CodeText and the BarCode.
setCodeTextSpace
in interface IBarCodeControl
public void setColumns(int value)
2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417
setColumns
in interface IBarCodeControl
public void setDataMatrixEncodeMode(int value)
Encode mode of Datamatrix barcode, default to Auto
see Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
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 void setEAN128EncodeMode(int value)
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI
See Aspose.BarCode.EAN128EncodeMode
.
public void setEnableChecksum(int value)
Enable checksum during generation for 1D barcodes.
Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
setEnableChecksum
in interface IBarCodeControl
public void setEnableEscape(boolean value)
setEnableEscape
in interface IBarCodeControl
public void setForeColor(Color 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 void setGraphicsUnit(int value)
Sets graphics unit
setGraphicsUnit
in interface IBarCodeControl
public void setImageHeight(float value)
Sets image height
setImageHeight
in interface IBarCodeControl
public void setImageQuality(int value)
Sets image quality
setImageQuality
in interface IBarCodeControl
public void setImageWidth(float value)
Sets image width
setImageWidth
in interface IBarCodeControl
public void setITF14BorderType(int value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public void setMacroPdf417FileID(int value)
Sets macro pdf417 barcode's file ID.
public void setMacroPdf417LastSegment(boolean value)
Sets whether this macro pdf417 barcode is the last segment.
public void setMacroPdf417SegmentID(int value)
Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public void setPdf417CompactionMode(int value)
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode>
See Aspose.BarCode.Pdf417CompactionMode
.
setPdf417CompactionMode
in interface IBarCodeControl
public void setPdf417ErrorLevel(int value)
Sets Pdf417 symbology 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
public void setPdf417Truncate(boolean value)
whether pdf417 symbology type of BarCode is truncated (to reduce space)
setPdf417Truncate
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.
see changing See System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: See BarHeightBarHeight
.
setPlanetShortBarHeight
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 void setPrinterName(java.lang.String value)
Sets printer name
public void setQREncodeMode(int value)
QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode>
See Aspose.BarCode.QREncodeMode
.
public void setQRErrorLevel(int value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see Aspose.BarCode.QRErrorLevelQRErrorLevel
.
public void setResolution(Resolution value)
Sets the resolution of the BarCode image
setResolution
in interface IBarCodeControl
public void setRotationAngle(int value)
Sets rotation angle
public void setRotationAngleF(float value)
Sets rotation angleF
setRotationAngleF
in interface IBarCodeControl
public void setRows(int value)
2D BarCode's rows, if setting is illegal then rows will be calculated automatically. appliable SymbologyType: Pdf417
public void setSupplementData(java.lang.String value)
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5.
See Aspose.BarCode.Symbology
.
See SupplementSpace
.
setSupplementData
in interface IBarCodeControl
public void setSupplementSpace(float value)
Sets supplement space
setSupplementSpace
in interface IBarCodeControl
public void setSymbologyType(long value)
Sets symbology type
setSymbologyType
in interface IBarCodeControl
public void setTextRenderingHint(int value)
Specifies the quality of text rendering.
setTextRenderingHint
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 symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
See Aspose.BarCode.Symbology
.
setWideNarrowRatio
in interface IBarCodeControl
public void setxDimension(float value)
Sets xDimension
setxDimension
in interface IBarCodeControl
public void setyDimension(float value)
Sets yDimension
setyDimension
in interface IBarCodeControl
public java.lang.String toString()
overried to string method