|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.barcode.BarCodeBuilder
public class BarCodeBuilder
BarCodeBuilder for backend barcode images generation. supported symbology:
1D:
Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, BooklandEAN, EAN128, Postnet, Planet EAN14(SCC14), SSCC18, ITF142D:
DataMatrix, PDf417, QR code
BarCodeBuilder b = new BarCodeBuilder(); b.setSymbologyType(Symbology.Codabar); b.setCodeText("12345678"); b.save("test.bmp");
Field Summary | |
---|---|
static char |
EAN_128_FNC_1
|
Constructor Summary | |
---|---|
BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678 |
|
BarCodeBuilder(String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128 |
|
BarCodeBuilder(String CodeText,
int type)
BarCodeBuilder's constructer |
Method Summary | |
---|---|
BufferedImage |
generateBarCodeImage()
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()
|
int |
getAztectErrorLevel()
Level of error corection of Aztect types of barcode. |
Color |
getBackColor()
Background color of the barcode image See System.Drawing.Color . |
BufferedImage |
getBarCodeImage()
|
float |
getBarHeight()
height of 1D barcodes' bars. |
Color |
getBorderColor()
|
int |
getBorderDashStyle()
|
boolean |
getBorderVisible()
|
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()
|
short |
getCodabarStopSymbol()
|
int |
getCode128CodeSet()
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto" See Aspose.BarCode.Code128CodeSet . |
int |
getCodeLocation()
|
String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions |
int |
getCodeTextAlignment()
|
Color |
getCodeTextColor()
|
Font |
getCodeTextFont()
|
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 |
int |
getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to Auto see Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode . |
int |
getEAN128EncodeMode()
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI See Aspose.BarCode.EAN128EncodeMode . |
boolean |
getEnableChecksum()
Enable check sum. |
boolean |
getEnableEscape()
|
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()
|
int |
getImageQuality()
Graphics quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. |
int |
getImageUnit()
Deprecated. |
float |
getImageWidth()
|
int |
getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings. |
int |
getMacroPdf417FileID()
Gets or sets macro pdf417 barcode's file ID. |
boolean |
getMacroPdf417LastSegment()
Gets or sets whether this macro pdf417 barcode is the last segment. |
int |
getMacroPdf417SegmentID()
Gets or sets 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 |
int |
getPdf417CompactionMode()
Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode>
See Aspose.BarCode.Pdf417CompactionMode . |
int |
getPdf417ErrorLevel()
Gets or 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 |
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). |
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 or sets the resolution of the BarCode image See Resolution . |
int |
getRotationAngle()
Deprecated. |
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. |
String |
getSupplementData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5. |
float |
getSupplementSpace()
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter See System.Drawing.GraphicsUnit . |
int |
getSymbologyType()
BarCode's 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. |
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(OutputStream stream,
int format)
|
void |
save(String filename)
Save BarCodeImage to specific file in specific format |
void |
save(String filename,
int format)
Save BarCodeImage to specific file in specific format |
void |
saveImageAs(OutputStream stream,
int format)
|
void |
saveImageAs(String filename)
Save the barcode image |
void |
saveImageAs(String filename,
int format)
Deprecated. |
void |
setAlwaysShowChecksum(boolean value)
|
void |
setAspectRatio(float value)
|
void |
setAustralianPosteParcelCodeSet(int value)
|
void |
setAustraliaPostFormatControlCode(int value)
|
void |
setAutoSize(boolean value)
|
void |
setAztectErrorLevel(int value)
|
void |
setBackColor(Color value)
|
void |
setBarHeight(float value)
|
void |
setBorderColor(Color value)
|
void |
setBorderDashStyle(int value)
|
void |
setBorderVisible(boolean value)
|
void |
setBorderWidth(float value)
|
void |
setCaptionAbove(Caption value)
|
void |
setCaptionBelow(Caption value)
|
void |
setCodabarStartSymbol(short value)
|
void |
setCodabarStopSymbol(short value)
|
void |
setCode128CodeSet(int value)
|
void |
setCodeLocation(int value)
|
void |
setCodeText(byte[] codeText)
Set the data to be encoded. |
void |
setCodeText(String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions |
void |
setCodeTextAlignment(int value)
|
void |
setCodeTextColor(Color value)
|
void |
setCodeTextFont(Font value)
|
void |
setCodeTextSpace(float value)
|
void |
setColumns(int value)
|
void |
setDataMatrixEncodeMode(int value)
|
void |
setEAN128EncodeMode(int value)
|
void |
setEnableChecksum(boolean value)
|
void |
setEnableEscape(boolean value)
|
void |
setForeColor(Color value)
|
void |
setGraphicsUnit(int value)
|
void |
setImageHeight(float value)
|
void |
setImageQuality(int value)
|
void |
setImageUnit(int value)
Deprecated. |
void |
setImageWidth(float value)
|
void |
setITF14BorderType(int value)
|
void |
setMacroPdf417FileID(int value)
|
void |
setMacroPdf417LastSegment(boolean value)
|
void |
setMacroPdf417SegmentID(int value)
|
void |
setMargins(MarginsF value)
|
void |
setPdf417CompactionMode(int value)
|
void |
setPdf417ErrorLevel(int value)
|
void |
setPdf417Truncate(boolean value)
|
void |
setPlanetShortBarHeight(float value)
|
void |
setPostnetShortBarHeight(float value)
|
void |
setPrinterName(String value)
|
void |
setQREncodeMode(int value)
|
void |
setQRErrorLevel(int value)
|
void |
setResolution(Resolution value)
|
void |
setRotationAngle(int value)
Deprecated. |
void |
setRotationAngleF(float value)
|
void |
setRows(int value)
|
void |
setSupplementData(String value)
|
void |
setSupplementSpace(float value)
|
void |
setSymbologyType(int value)
BarCode's symbology type. |
void |
setTextRenderingHint(int value)
|
void |
setWideNarrowRatio(float value)
|
void |
setxDimension(float value)
|
void |
setyDimension(float value)
|
String |
toString()
overried to string method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char EAN_128_FNC_1
Constructor Detail |
---|
public BarCodeBuilder()
BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678
public BarCodeBuilder(String CodeText)
BarCodeBuilder's constructer, default SymbologyType is Code128
CodeText
- string text data to be encodedpublic BarCodeBuilder(String CodeText, int type)
BarCodeBuilder's constructer
CodeText
- string text data to be encodedtype
- BarCode's type: Aspose.BarCode.SymbologyTypeMethod Detail |
---|
public int getSymbologyType()
getSymbologyType
in interface IBarCodeControl
public void setSymbologyType(int value)
setSymbologyType
in interface IBarCodeControl
public String getCodeText()
getCodeText
in interface IBarCodeControl
public void setCodeText(String value)
setCodeText
in interface IBarCodeControl
public void setCodeText(byte[] codeText)
Set the data to be encoded.
codeText
- The data to be encoded.public boolean getEnableEscape()
getEnableEscape
in interface IBarCodeControl
public void setEnableEscape(boolean value)
setEnableEscape
in interface IBarCodeControl
public Font getCodeTextFont()
getCodeTextFont
in interface IBarCodeControl
public void setCodeTextFont(Font value)
setCodeTextFont
in interface IBarCodeControl
public Color getCodeTextColor()
getCodeTextColor
in interface IBarCodeControl
public void setCodeTextColor(Color value)
setCodeTextColor
in interface IBarCodeControl
public int getCodeLocation()
getCodeLocation
in interface IBarCodeControl
public void setCodeLocation(int value)
setCodeLocation
in interface IBarCodeControl
public int getCodeTextAlignment()
getCodeTextAlignment
in interface IBarCodeControl
public void setCodeTextAlignment(int value)
setCodeTextAlignment
in interface IBarCodeControl
@Deprecated public int getRotationAngle()
Obsoleted, Use RotationAngleF instead
@Deprecated public void setRotationAngle(int value)
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)
setRotationAngleF
in interface IBarCodeControl
public Caption getCaptionAbove()
Caption Above the BarCode image. CaptionAbove contains the following properties:
CaptionAbove.Font, CaptionAbove.ForeColor, CaptionAbove.Space, CaptionAbove.Visible, CaptionAbove.Text, CaptionAbove.TextAlign
[Java] BarCodeBuilder b = new BarCodeBuilder(); Caption captionAbove = b.getCaptionAbove(); captionAbove.setText("This is a BarCode image"); captionAbove.setVisible(true); captionAbove.setFont(new Font("Arial", 8f)); //space between the barcode and the caption captionAbove.setSpace(2f);
getCaptionAbove
in interface IBarCodeControl
public void setCaptionAbove(Caption value)
setCaptionAbove
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
[C#] Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.CaptionAbove.Text = "This is a BarCode image"; b.CaptionAbove.Visible = true; b.CaptionAbove.Font = new System.Drawing.Font("Arial", 8f); //space between the barcode and the caption b.CaptionAbove.Space = 2f; [VB.NET] Dim b As Aspose.BarCode.BarCodeBuilder b = New Aspose.BarCode.BarCodeBuilder b.CaptionAbove.Text = "This is a BarCode image" b.CaptionAbove.Visible = True b.CaptionAbove.Font = New System.Drawing.Font("Arial", 8.0F) 'Space between the barcode and the caption b.CaptionAbove.Space = 2.0F
getCaptionBelow
in interface IBarCodeControl
public void setCaptionBelow(Caption value)
setCaptionBelow
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 void setGraphicsUnit(int value)
setGraphicsUnit
in interface IBarCodeControl
public Resolution getResolution()
Gets or sets the resolution of the BarCode image
See Resolution
.
getResolution
in interface IBarCodeControl
public void setResolution(Resolution value)
setResolution
in interface IBarCodeControl
public String getPrinterName()
Choose printer, if not specified, Print() method will choose the first available printer
public void setPrinterName(String value)
public int 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
public void setImageQuality(int value)
setImageQuality
in interface IBarCodeControl
public int getTextRenderingHint()
Specifies the quality of text rendering.
getTextRenderingHint
in interface IBarCodeControl
public void setTextRenderingHint(int value)
setTextRenderingHint
in interface IBarCodeControl
public boolean getAutoSize()
getAutoSize
in interface IBarCodeControl
public void setAutoSize(boolean value)
setAutoSize
in interface IBarCodeControl
public float getImageWidth()
getImageWidth
in interface IBarCodeControl
public void setImageWidth(float value)
setImageWidth
in interface IBarCodeControl
public float getImageHeight()
getImageHeight
in interface IBarCodeControl
public void setImageHeight(float value)
setImageHeight
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 void setBorderWidth(float value)
setBorderWidth
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 void setxDimension(float value)
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
See xDimension
.
See BarHeight
.
getyDimension
in interface IBarCodeControl
public void setyDimension(float value)
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
See yDimension
.
getBarHeight
in interface IBarCodeControl
public void setBarHeight(float value)
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.
See xDimension
.
See yDimension
.
getAspectRatio
in interface IBarCodeControl
public void setAspectRatio(float value)
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)
setMargins
in interface IBarCodeControl
public float getSupplementSpace()
Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter
See System.Drawing.GraphicsUnit
.
See SupplementData
.
getSupplementSpace
in interface IBarCodeControl
public void setSupplementSpace(float value)
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)
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.
see changing See System.Drawing.GraphicsUnitGraphicsUnit
.
see setting tall bar's height: See BarHeightBarHeight
.
getPlanetShortBarHeight
in interface IBarCodeControl
public void setPlanetShortBarHeight(float value)
setPlanetShortBarHeight
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 void setCodeTextSpace(float value)
setCodeTextSpace
in interface IBarCodeControl
public BufferedImage getBarCodeImage()
getBarCodeImage
in interface IBarCodeControl
public boolean getBorderVisible()
getBorderVisible
in interface IBarCodeControl
public void setBorderVisible(boolean value)
setBorderVisible
in interface IBarCodeControl
public Color getBorderColor()
getBorderColor
in interface IBarCodeControl
public void setBorderColor(Color value)
setBorderColor
in interface IBarCodeControl
public int getBorderDashStyle()
getBorderDashStyle
in interface IBarCodeControl
public void setBorderDashStyle(int value)
setBorderDashStyle
in interface IBarCodeControl
public short getCodabarStartSymbol()
getCodabarStartSymbol
in interface IBarCodeControl
public void setCodabarStartSymbol(short value)
setCodabarStartSymbol
in interface IBarCodeControl
public short getCodabarStopSymbol()
getCodabarStopSymbol
in interface IBarCodeControl
public void setCodabarStopSymbol(short value)
setCodabarStopSymbol
in interface IBarCodeControl
public int getCode128CodeSet()
Code128 symbology type of barcode's code set, default to Code128CodeSet.Auto"
See Aspose.BarCode.Code128CodeSet
.
[C#] Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.SymbologyType.Code128; b.Code128CodeSet = Code128CodeSet.Auto; b.CodeText = "123456"; [VB.NET] dim b as Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder() b.SymbologyType = Aspose.BarCode.SymbologyType.Code128 b.Code128CodeSet = Code128CodeSet.Auto; b.CodeText = "123456"
getCode128CodeSet
in interface IBarCodeControl
public void setCode128CodeSet(int value)
setCode128CodeSet
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
.
[C#] Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.Symbology.AustralianPosteParcel; b.AustralianPosteParcelCodeSet = AustralianPosteParcelCodeSet.Auto; b.CodeText = "99700160DJS123456701021502000"; [VB.NET] dim b as Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder() b.SymbologyType = Aspose.BarCode.Symbology.AustralianPosteParcel b.AustralianPosteParcelCodeSet = AustralianPosteParcelCodeSet.Auto; b.CodeText = "99700160DJS123456701021502000"
public void setAustralianPosteParcelCodeSet(int value)
public int getEAN128EncodeMode()
EAN128 symbology type of barcode's EncodeMode, default to EAN128EncodeMode.AI
See Aspose.BarCode.EAN128EncodeMode
.
[C#] Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.SymbologyType.EAN128; b.EAN128EncodeMode = Code128CodeSet.AutoAI; b.CodeText = "(30)23(17)20101207"; [VB.NET] dim b as Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder() b.SymbologyType = Aspose.BarCode.SymbologyType.EAN128 b.EAN128EncodeMode = Code128CodeSet.AutoAI b.CodeText = "(30)23(17)20101207"
public void setEAN128EncodeMode(int value)
public int getAustraliaPostFormatControlCode()
Australia Post symbology type of barcode's FormatControlCode, default to AustraliaPostFormatControlCode.Standard"
See Aspose.BarCode.AustraliaPostFormatControlCode
.
[C#] Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder(); b.SymbologyType = Aspose.BarCode.SymbologyType.AustraliaPost; b.AustraliaPostFormatControlCode = AustraliaPostFormatControlCode.Standard; b.CodeText = "12345678"; [VB.NET] dim b as Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder() b.SymbologyType = Aspose.BarCode.SymbologyType.AustraliaPost b.AustraliaPostFormatControlCode = AustraliaPostFormatControlCode.Standard b.CodeText = "12345678"
getAustraliaPostFormatControlCode
in interface IBarCodeControl
public void setAustraliaPostFormatControlCode(int value)
setAustraliaPostFormatControlCode
in interface IBarCodeControl
public int getITF14BorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
public void setITF14BorderType(int value)
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 void setForeColor(Color value)
setForeColor
in interface IBarCodeControl
public Color getBackColor()
Background color of the barcode image
See System.Drawing.Color
.
getBackColor
in interface IBarCodeControl
public void setBackColor(Color value)
setBackColor
in interface IBarCodeControl
public boolean getEnableChecksum()
Enable check sum. Appliable symbology: Code11, Code39Extended, Code39Standard,
Code93Extended, Code93Standard, Interleaved2of5, Standard2of5
The following SymbologyType always include checksum:
EAN13, EAN8, BooklandEAN
See Aspose.BarCode.Symbology
.
getEnableChecksum
in interface IBarCodeControl
public void setEnableChecksum(boolean value)
setEnableChecksum
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 void setColumns(int value)
setColumns
in interface IBarCodeControl
public int getRows()
2D BarCode's rows, if setting is illegal then rows will be calculated automatically. appliable SymbologyType: Pdf417
public void setRows(int value)
public int getDataMatrixEncodeMode()
Encode mode of Datamatrix barcode, default to Auto
see Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode
.
public void setDataMatrixEncodeMode(int value)
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 void setPdf417CompactionMode(int value)
setPdf417CompactionMode
in interface IBarCodeControl
public boolean getPdf417Truncate()
whether pdf417 symbology type of BarCode is truncated (to reduce space)
getPdf417Truncate
in interface IBarCodeControl
public void setPdf417Truncate(boolean value)
setPdf417Truncate
in interface IBarCodeControl
public int getPdf417ErrorLevel()
Gets or 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
getPdf417ErrorLevel
in interface IBarCodeControl
public void setPdf417ErrorLevel(int value)
setPdf417ErrorLevel
in interface IBarCodeControl
public boolean getMacroPdf417LastSegment()
Gets or sets whether this macro pdf417 barcode is the last segment.
public void setMacroPdf417LastSegment(boolean value)
public int getMacroPdf417SegmentID()
Gets or sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
public void setMacroPdf417SegmentID(int value)
public int getMacroPdf417FileID()
Gets or sets macro pdf417 barcode's file ID.
public void setMacroPdf417FileID(int value)
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
See Aspose.BarCode.Symbology
.
getWideNarrowRatio
in interface IBarCodeControl
public void setWideNarrowRatio(float value)
setWideNarrowRatio
in interface IBarCodeControl
public String getSupplementData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, BooklandEAN, Interleaved2of5 or Standard2of5.
See Aspose.BarCode.Symbology
.
See SupplementSpace
.
[C#] Aspose.BarCode.BarCodeBuilder b; b = new BarCodeBuilder(); b.SymbologyType = SymbologyType.UPCE; b.CodeText = "123456"; b.SupplementData = "11"; b.BarCodeImage.Save("tmp.bmp"); [VB.NET] Dim b as Aspose.BarCode.BarCodeBuilder b = new BarCodeBuilder() b.SymbologyType = SymbologyType.UPCE b.SupplementData = "11" b.BarCodeImage.Save("tmp.bmp");
getSupplementData
in interface IBarCodeControl
public void setSupplementData(String value)
setSupplementData
in interface IBarCodeControl
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 void setQRErrorLevel(int value)
public int getQREncodeMode()
QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode>
See Aspose.BarCode.QREncodeMode
.
public void setQREncodeMode(int value)
public int getAztectErrorLevel()
Level of error corection of Aztect types of barcode. value should between 10 to 95
public void setAztectErrorLevel(int value)
@Deprecated public int getImageUnit()
Obsoleted, Use GraphicsUnit instead
@Deprecated public void setImageUnit(int value)
public void saveImageAs(String filename)
Save the barcode image
filename
- Full path of the target image filepublic void saveImageAs(OutputStream stream, int format)
@Deprecated public void saveImageAs(String filename, int format)
Save barcode image to local file.
filename
- The filenameformat
- The image formatpublic boolean getAlwaysShowChecksum()
Always display checksum digit in the humanreadable text for Code128 and EAN128 barcodes.
public void setAlwaysShowChecksum(boolean value)
public BufferedImage 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(int direction, float angle)
Rotate the barcode image
rotate
in interface IBarCodeControl
direction
- rotation directionangle
- 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, 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(OutputStream stream, int format)
save
in interface IBarCodeControl
public void save(String filename)
Save BarCodeImage to specific file in specific format
save
in interface IBarCodeControl
filename
- save to this file pathpublic void save(String filename, int format)
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.public String toString()
overried to string method
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |