com.aspose.barcode
Class BarCodeBuilder

java.lang.Object
  extended by com.aspose.barcode.BarCodeBuilder
All Implemented Interfaces:
IBarCodeControl

public class BarCodeBuilder
extends Object
implements IBarCodeControl

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, ITF14
 
2D:
  DataMatrix, PDf417, QR code
 


Create and save a BarCode image:
 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

EAN_128_FNC_1

public static final char EAN_128_FNC_1
See Also:
Constant Field Values
Constructor Detail

BarCodeBuilder

public BarCodeBuilder()

BarCodeBuilder's constructer, default SymbologyType is Code128, default CodeText is 12345678


BarCodeBuilder

public BarCodeBuilder(String CodeText)

BarCodeBuilder's constructer, default SymbologyType is Code128

Parameters:
CodeText - string text data to be encoded

BarCodeBuilder

public BarCodeBuilder(String CodeText,
                      int type)

BarCodeBuilder's constructer

Parameters:
CodeText - string text data to be encoded
type - BarCode's type: Aspose.BarCode.SymbologyType
Method Detail

getSymbologyType

public int getSymbologyType()
BarCode's symbology type.

Specified by:
getSymbologyType in interface IBarCodeControl

setSymbologyType

public void setSymbologyType(int value)
BarCode's symbology type.

Specified by:
setSymbologyType in interface IBarCodeControl

getCodeText

public String getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions

Specified by:
getCodeText in interface IBarCodeControl

setCodeText

public void setCodeText(String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions

Specified by:
setCodeText in interface IBarCodeControl

setCodeText

public void setCodeText(byte[] codeText)

Set the data to be encoded.

Parameters:
codeText - The data to be encoded.

getEnableEscape

public boolean getEnableEscape()
Specified by:
getEnableEscape in interface IBarCodeControl

setEnableEscape

public void setEnableEscape(boolean value)
Specified by:
setEnableEscape in interface IBarCodeControl

getCodeTextFont

public Font getCodeTextFont()
Specified by:
getCodeTextFont in interface IBarCodeControl

setCodeTextFont

public void setCodeTextFont(Font value)
Specified by:
setCodeTextFont in interface IBarCodeControl

getCodeTextColor

public Color getCodeTextColor()
Specified by:
getCodeTextColor in interface IBarCodeControl

setCodeTextColor

public void setCodeTextColor(Color value)
Specified by:
setCodeTextColor in interface IBarCodeControl

getCodeLocation

public int getCodeLocation()
Specified by:
getCodeLocation in interface IBarCodeControl

setCodeLocation

public void setCodeLocation(int value)
Specified by:
setCodeLocation in interface IBarCodeControl

getCodeTextAlignment

public int getCodeTextAlignment()
Specified by:
getCodeTextAlignment in interface IBarCodeControl

setCodeTextAlignment

public void setCodeTextAlignment(int value)
Specified by:
setCodeTextAlignment in interface IBarCodeControl

getRotationAngle

@Deprecated
public int getRotationAngle()
Deprecated. 

Obsoleted, Use RotationAngleF instead


setRotationAngle

@Deprecated
public void setRotationAngle(int value)
Deprecated. 


getRotationAngleF

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

Specified by:
getRotationAngleF in interface IBarCodeControl

setRotationAngleF

public void setRotationAngleF(float value)
Specified by:
setRotationAngleF in interface IBarCodeControl

getCaptionAbove

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);
         

Specified by:
getCaptionAbove in interface IBarCodeControl

setCaptionAbove

public void setCaptionAbove(Caption value)
Specified by:
setCaptionAbove in interface IBarCodeControl

getCaptionBelow

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
         

Specified by:
getCaptionBelow in interface IBarCodeControl

setCaptionBelow

public void setCaptionBelow(Caption value)
Specified by:
setCaptionBelow in interface IBarCodeControl

getGraphicsUnit

public int getGraphicsUnit()

Measurement of various properties such as Width, Height etc. Default GraphicsUnit: Millimeter See System.Drawing.GraphicsUnit.

Specified by:
getGraphicsUnit in interface IBarCodeControl

setGraphicsUnit

public void setGraphicsUnit(int value)
Specified by:
setGraphicsUnit in interface IBarCodeControl

getResolution

public Resolution getResolution()

Gets or sets the resolution of the BarCode image See Resolution.

Specified by:
getResolution in interface IBarCodeControl

setResolution

public void setResolution(Resolution value)
Specified by:
setResolution in interface IBarCodeControl

getPrinterName

public String getPrinterName()

Choose printer, if not specified, Print() method will choose the first available printer


setPrinterName

public void setPrinterName(String value)

getImageQuality

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.

Specified by:
getImageQuality in interface IBarCodeControl

setImageQuality

public void setImageQuality(int value)
Specified by:
setImageQuality in interface IBarCodeControl

getTextRenderingHint

public int getTextRenderingHint()

Specifies the quality of text rendering.

Specified by:
getTextRenderingHint in interface IBarCodeControl

setTextRenderingHint

public void setTextRenderingHint(int value)
Specified by:
setTextRenderingHint in interface IBarCodeControl

getAutoSize

public boolean getAutoSize()
Specified by:
getAutoSize in interface IBarCodeControl

setAutoSize

public void setAutoSize(boolean value)
Specified by:
setAutoSize in interface IBarCodeControl

getImageWidth

public float getImageWidth()
Specified by:
getImageWidth in interface IBarCodeControl

setImageWidth

public void setImageWidth(float value)
Specified by:
setImageWidth in interface IBarCodeControl

getImageHeight

public float getImageHeight()
Specified by:
getImageHeight in interface IBarCodeControl

setImageHeight

public void setImageHeight(float value)
Specified by:
setImageHeight in interface IBarCodeControl

getBorderWidth

public float getBorderWidth()

BarCode Image's border's width Default Graphics Unit: Millimeter See BorderVisible. See BorderDashStyle. See BorderColor.

Specified by:
getBorderWidth in interface IBarCodeControl

setBorderWidth

public void setBorderWidth(float value)
Specified by:
setBorderWidth in interface IBarCodeControl

getxDimension

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.

Specified by:
getxDimension in interface IBarCodeControl

setxDimension

public void setxDimension(float value)
Specified by:
setxDimension in interface IBarCodeControl

getyDimension

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.

Specified by:
getyDimension in interface IBarCodeControl

setyDimension

public void setyDimension(float value)
Specified by:
setyDimension in interface IBarCodeControl

getBarHeight

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.

Specified by:
getBarHeight in interface IBarCodeControl

setBarHeight

public void setBarHeight(float value)
Specified by:
setBarHeight in interface IBarCodeControl

getAspectRatio

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.


Some 2D BarCodes are square shaped, then AspectRatio is not appliable

Specified by:
getAspectRatio in interface IBarCodeControl

setAspectRatio

public void setAspectRatio(float value)
Specified by:
setAspectRatio in interface IBarCodeControl

getMargins

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

Specified by:
getMargins in interface IBarCodeControl

setMargins

public void setMargins(MarginsF value)
Specified by:
setMargins in interface IBarCodeControl

getSupplementSpace

public float getSupplementSpace()

Space between main the BarCode and supplement BarCode, default Graphics Unit: millimeter See System.Drawing.GraphicsUnit. See SupplementData.

Specified by:
getSupplementSpace in interface IBarCodeControl

setSupplementSpace

public void setSupplementSpace(float value)
Specified by:
setSupplementSpace in interface IBarCodeControl

getPostnetShortBarHeight

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.

Specified by:
getPostnetShortBarHeight in interface IBarCodeControl

setPostnetShortBarHeight

public void setPostnetShortBarHeight(float value)
Specified by:
setPostnetShortBarHeight in interface IBarCodeControl

getPlanetShortBarHeight

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.

Specified by:
getPlanetShortBarHeight in interface IBarCodeControl

setPlanetShortBarHeight

public void setPlanetShortBarHeight(float value)
Specified by:
setPlanetShortBarHeight in interface IBarCodeControl

getCodeTextSpace

public float getCodeTextSpace()

Space between the CodeText and the BarCode. Default Graphics Unit: Millimeter See CodeText. See CodeLocation. See CodeTextFont. See CodeTextColor. See CodeTextAlignment.

Specified by:
getCodeTextSpace in interface IBarCodeControl

setCodeTextSpace

public void setCodeTextSpace(float value)
Specified by:
setCodeTextSpace in interface IBarCodeControl

getBarCodeImage

public BufferedImage getBarCodeImage()
Specified by:
getBarCodeImage in interface IBarCodeControl

getBorderVisible

public boolean getBorderVisible()
Specified by:
getBorderVisible in interface IBarCodeControl

setBorderVisible

public void setBorderVisible(boolean value)
Specified by:
setBorderVisible in interface IBarCodeControl

getBorderColor

public Color getBorderColor()
Specified by:
getBorderColor in interface IBarCodeControl

setBorderColor

public void setBorderColor(Color value)
Specified by:
setBorderColor in interface IBarCodeControl

getBorderDashStyle

public int getBorderDashStyle()
Specified by:
getBorderDashStyle in interface IBarCodeControl

setBorderDashStyle

public void setBorderDashStyle(int value)
Specified by:
setBorderDashStyle in interface IBarCodeControl

getCodabarStartSymbol

public short getCodabarStartSymbol()
Specified by:
getCodabarStartSymbol in interface IBarCodeControl

setCodabarStartSymbol

public void setCodabarStartSymbol(short value)
Specified by:
setCodabarStartSymbol in interface IBarCodeControl

getCodabarStopSymbol

public short getCodabarStopSymbol()
Specified by:
getCodabarStopSymbol in interface IBarCodeControl

setCodabarStopSymbol

public void setCodabarStopSymbol(short value)
Specified by:
setCodabarStopSymbol in interface IBarCodeControl

getCode128CodeSet

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"
  

Specified by:
getCode128CodeSet in interface IBarCodeControl

setCode128CodeSet

public void setCode128CodeSet(int value)
Specified by:
setCode128CodeSet in interface IBarCodeControl

getAustralianPosteParcelCodeSet

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"
  


setAustralianPosteParcelCodeSet

public void setAustralianPosteParcelCodeSet(int value)

getEAN128EncodeMode

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"
  


setEAN128EncodeMode

public void setEAN128EncodeMode(int value)

getAustraliaPostFormatControlCode

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"
  

Specified by:
getAustraliaPostFormatControlCode in interface IBarCodeControl

setAustraliaPostFormatControlCode

public void setAustraliaPostFormatControlCode(int value)
Specified by:
setAustraliaPostFormatControlCode in interface IBarCodeControl

getITF14BorderType

public int getITF14BorderType()

Border type of ITF14 barcode, quiet zone will be determined by margin settings.


setITF14BorderType

public void setITF14BorderType(int value)

getForeColor

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.

Specified by:
getForeColor in interface IBarCodeControl

setForeColor

public void setForeColor(Color value)
Specified by:
setForeColor in interface IBarCodeControl

getBackColor

public Color getBackColor()

Background color of the barcode image See System.Drawing.Color.

Specified by:
getBackColor in interface IBarCodeControl

setBackColor

public void setBackColor(Color value)
Specified by:
setBackColor in interface IBarCodeControl

getEnableChecksum

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.

Specified by:
getEnableChecksum in interface IBarCodeControl

setEnableChecksum

public void setEnableChecksum(boolean value)
Specified by:
setEnableChecksum in interface IBarCodeControl

getColumns

public int getColumns()

2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable SymbologyType: Pdf417

Specified by:
getColumns in interface IBarCodeControl

setColumns

public void setColumns(int value)
Specified by:
setColumns in interface IBarCodeControl

getRows

public int getRows()

2D BarCode's rows, if setting is illegal then rows will be calculated automatically. appliable SymbologyType: Pdf417


setRows

public void setRows(int value)

getDataMatrixEncodeMode

public int getDataMatrixEncodeMode()

Encode mode of Datamatrix barcode, default to Auto see Aspose.BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .


setDataMatrixEncodeMode

public void setDataMatrixEncodeMode(int value)

getPdf417CompactionMode

public int getPdf417CompactionMode()

Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>Auto</bode> See Aspose.BarCode.Pdf417CompactionMode.

Specified by:
getPdf417CompactionMode in interface IBarCodeControl

setPdf417CompactionMode

public void setPdf417CompactionMode(int value)
Specified by:
setPdf417CompactionMode in interface IBarCodeControl

getPdf417Truncate

public boolean getPdf417Truncate()

whether pdf417 symbology type of BarCode is truncated (to reduce space)

Specified by:
getPdf417Truncate in interface IBarCodeControl

setPdf417Truncate

public void setPdf417Truncate(boolean value)
Specified by:
setPdf417Truncate in interface IBarCodeControl

getPdf417ErrorLevel

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

Specified by:
getPdf417ErrorLevel in interface IBarCodeControl

setPdf417ErrorLevel

public void setPdf417ErrorLevel(int value)
Specified by:
setPdf417ErrorLevel in interface IBarCodeControl

getMacroPdf417LastSegment

public boolean getMacroPdf417LastSegment()

Gets or sets whether this macro pdf417 barcode is the last segment.


setMacroPdf417LastSegment

public void setMacroPdf417LastSegment(boolean value)

getMacroPdf417SegmentID

public int getMacroPdf417SegmentID()

Gets or sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.


setMacroPdf417SegmentID

public void setMacroPdf417SegmentID(int value)

getMacroPdf417FileID

public int getMacroPdf417FileID()

Gets or sets macro pdf417 barcode's file ID.


setMacroPdf417FileID

public void setMacroPdf417FileID(int value)

getWideNarrowRatio

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.

Specified by:
getWideNarrowRatio in interface IBarCodeControl

setWideNarrowRatio

public void setWideNarrowRatio(float value)
Specified by:
setWideNarrowRatio in interface IBarCodeControl

getSupplementData

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");
 

Specified by:
getSupplementData in interface IBarCodeControl

setSupplementData

public void setSupplementData(String value)
Specified by:
setSupplementData in interface IBarCodeControl

getQRErrorLevel

public int getQRErrorLevel()

Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see Aspose.BarCode.QRErrorLevelQRErrorLevel.


setQRErrorLevel

public void setQRErrorLevel(int value)

getQREncodeMode

public int getQREncodeMode()

QR symbology type of BarCode's encoding mode, default mode is <bode>Auto</bode> See Aspose.BarCode.QREncodeMode.


setQREncodeMode

public void setQREncodeMode(int value)

getAztectErrorLevel

public int getAztectErrorLevel()

Level of error corection of Aztect types of barcode. value should between 10 to 95


setAztectErrorLevel

public void setAztectErrorLevel(int value)

getImageUnit

@Deprecated
public int getImageUnit()
Deprecated. 

Obsoleted, Use GraphicsUnit instead


setImageUnit

@Deprecated
public void setImageUnit(int value)
Deprecated. 


saveImageAs

public void saveImageAs(String filename)

Save the barcode image

Parameters:
filename - Full path of the target image file

saveImageAs

public void saveImageAs(OutputStream stream,
                        int format)

saveImageAs

@Deprecated
public void saveImageAs(String filename,
                                   int format)
Deprecated. 

Save barcode image to local file.

Parameters:
filename - The filename
format - The image format

getAlwaysShowChecksum

public boolean getAlwaysShowChecksum()

Always display checksum digit in the humanreadable text for Code128 and EAN128 barcodes.


setAlwaysShowChecksum

public void setAlwaysShowChecksum(boolean value)

generateBarCodeImage

public BufferedImage generateBarCodeImage()

Generate the BarCode image under current settings

Returns:
BarCode Image .

rotate

public void rotate()

Rotate barcode image clockwise for 90 degrees

Specified by:
rotate in interface IBarCodeControl

rotate

public void rotate(float angle)

Rotate barcode image clockwise

Specified by:
rotate in interface IBarCodeControl
Parameters:
angle - Rotation Angle

rotate

public void rotate(int direction,
                   float angle)

Rotate the barcode image

Specified by:
rotate in interface IBarCodeControl
Parameters:
direction - rotation direction
angle - rotation angle

rotate

public void rotate(int angle)

Rotate the barcode image

Specified by:
rotate in interface IBarCodeControl
Parameters:
angle - either 0, 90, 180 or 270 degree

rotate

public void rotate(int direction,
                   int angle)

Rotate the barcode image

Specified by:
rotate in interface IBarCodeControl
Parameters:
direction - specify clockwise or anti-clockwise
angle - either 0, 90, 180 or 270 degree

save

public void save(OutputStream stream,
                 int format)
Specified by:
save in interface IBarCodeControl

save

public void save(String filename)

Save BarCodeImage to specific file in specific format

Specified by:
save in interface IBarCodeControl
Parameters:
filename - save to this file path

save

public void save(String filename,
                 int format)

Save BarCodeImage to specific file in specific format

Specified by:
save in interface IBarCodeControl
Parameters:
filename - save to this file path
format - Specifies the file format of the image.

toString

public String toString()

overried to string method

Overrides:
toString in class Object
Returns:
BarCode: SymbologyType: CodeText


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.