public interface IBarCodeControl
IBarCodeControl
Modifier and Type | Method and Description |
---|---|
float |
getAspectRatio()
AspectRatio
|
boolean |
getAutoSize()
Gets a value indicating whether the image size is to be adjusted automatically.
|
java.awt.Color |
getBackColor()
Background color of the barcode image.
|
java.awt.image.BufferedImage |
getBarCodeImage()
Get the BarCode image under current settings.
|
float |
getBarHeight()
height of 1D barcodes' bars.
|
java.awt.Color |
getBorderColor()
Gets BorderColor
|
BorderDashStyle |
getBorderDashStyle()
BorderDashStyle
|
boolean |
getBorderVisible()
BorderVisible
|
float |
getBorderWidth()
BorderWidth
|
Caption |
getCaptionAbove()
CaptionAbove
|
Caption |
getCaptionBelow()
CaptionBelow
|
short |
getCodabarStartSymbol()
CodabarStartSymbol
|
short |
getCodabarStopSymbol()
CodabarStopSymbol
|
CodeLocation |
getCodeLocation()
CodeLocation
|
java.lang.String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
StringAlignment |
getCodeTextAlignment()
CodeTextAlignment
|
java.awt.Color |
getCodeTextColor()
CodeTextColor
|
java.awt.Font |
getCodeTextFont()
Gets CodeTextFont
|
float |
getCodeTextSpace()
CodeTextSpace
|
int |
getColumns()
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
applicable EncodeTypes: Pdf417
|
CustomerInformationInterpretingType |
getCustomerInformationInterpretingType()
CustomerInformationInterpretingType
|
java.lang.String |
getDisplay2DText()
Display2DText
|
EnableChecksum |
getEnableChecksum()
EnableChecksum
|
boolean |
getEnableEscape()
EnableEscape
|
BaseEncodeType |
getEncodeType()
BarCode's encode type (symbology).
|
java.awt.Color |
getForeColor()
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
|
GraphicsUnit |
getGraphicsUnit()
Measurement of various properties such as width, height etc.
|
float |
getImageHeight()
BarCode image's height.
|
ImageQualityMode |
getImageQuality()
ImageQuality
|
float |
getImageWidth()
BarCode image's width.
|
MarginsF |
getMargins()
Margin area around the core BarCode image.
|
Pdf417CompactionMode |
getPdf417CompactionMode()
Pdf417CompactionMode
|
Pdf417ErrorLevel |
getPdf417ErrorLevel()
Pdf417ErrorLevel
|
boolean |
getPdf417Truncate()
Pdf417Truncate
|
float |
getPlanetShortBarHeight()
PLANET_SHORT_BAR_HEIGHT
|
float |
getPostnetShortBarHeight()
POSTNET_SHORT_BAR_HEIGHT
|
Resolution |
getResolution()
Resolution
|
float |
getRotationAngleF()
BarCode image's rotation angle, measured in degree, e.g.
|
java.lang.String |
getSupplementData()
SupplementData
|
float |
getSupplementSpace()
SUPPLEMENT_SPACE
|
com.aspose.barcode.TextRenderingHint |
getTextRenderingHint()
TextRenderingHint
|
float |
getWideNarrowRatio()
WideNarrowRatio
|
float |
getxDimension()
x-dimension, smallest width unit of BarCode's bars or spaces.
|
float |
getyDimension()
y-dimension
|
void |
rotate()
Rotate barcode image clockwise for 90 degrees
|
void |
rotate(float angle)
Rotate barcode image clockwise
|
void |
rotate(int direction,
float angle)
Deprecated.
|
void |
rotate(RotationDirection direction,
float angle)
Rotate the barcode image
|
void |
save(java.io.OutputStream stream,
BarCodeImageFormat 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,
BarCodeImageFormat format)
Save BarCodeImage to specific file in specific format
|
void |
setAspectRatio(float value)
AspectRatio
|
void |
setAutoSize(boolean value)
Sets a value indicating whether the image size is to be adjusted automatically.
|
void |
setBackColor(java.awt.Color value)
Background color of the barcode image.
|
void |
setBarHeight(float value)
height of 1D barcodes' bars.
|
void |
setBorderColor(java.awt.Color value)
Sets BorderColor
|
void |
setBorderDashStyle(BorderDashStyle value)
BorderDashStyle
|
void |
setBorderDashStyle(int value)
Deprecated.
|
void |
setBorderVisible(boolean value)
BorderVisible
|
void |
setBorderWidth(float value)
BorderWidth
|
void |
setCaptionAbove(Caption value)
CaptionAbove
|
void |
setCaptionBelow(Caption value)
CaptionBelow
|
void |
setCodabarStartSymbol(short value)
CodabarStartSymbol
|
void |
setCodabarStopSymbol(short value)
CodabarStopSymbol
|
void |
setCodeLocation(CodeLocation value)
CodeLocation
|
void |
setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
void |
setCodeTextAlignment(int value)
Deprecated.
|
void |
setCodeTextAlignment(StringAlignment value)
CodeTextAlignment
|
void |
setCodeTextColor(java.awt.Color value)
CodeTextColor
|
void |
setCodeTextFont(java.awt.Font value)
Sets CodeTextFont
|
void |
setCodeTextSpace(float value)
CodeTextSpace
|
void |
setColumns(int value)
2D BarCode's columns, if setting is illegal then columns will be calculated automatically
applicable EncodeTypes: Pdf417
|
void |
setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
CustomerInformationInterpretingType
|
void |
setCustomerInformationInterpretingType(int value)
Deprecated.
|
void |
setDisplay2DText(java.lang.String value)
Display2DText
|
void |
setEnableChecksum(EnableChecksum value)
EnableChecksum
|
void |
setEnableChecksum(int value)
Deprecated.
|
void |
setEnableEscape(boolean value)
EnableEscape
|
void |
setEncodeType(BaseEncodeType value)
BarCode's encode type (symbology).
|
void |
setForeColor(java.awt.Color value)
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
|
void |
setGraphicsUnit(GraphicsUnit value)
Measurement of various properties such as width, height etc.
|
void |
setGraphicsUnit(int value)
Deprecated.
|
void |
setImageHeight(float value)
BarCode image's height.
|
void |
setImageQuality(ImageQualityMode value) |
void |
setImageQuality(int value)
Deprecated.
|
void |
setImageWidth(float value)
BarCode image's width.
|
void |
setPdf417CompactionMode(int value)
Deprecated.
|
void |
setPdf417CompactionMode(Pdf417CompactionMode value)
Pdf417CompactionMode
|
void |
setPdf417ErrorLevel(int value)
Deprecated.
|
void |
setPdf417ErrorLevel(Pdf417ErrorLevel value)
Pdf417ErrorLevel
|
void |
setPdf417Truncate(boolean value)
Pdf417Truncate
|
void |
setPlanetShortBarHeight(float value)
PLANET_SHORT_BAR_HEIGHT
|
void |
setPostnetShortBarHeight(float value)
POSTNET_SHORT_BAR_HEIGHT
|
void |
setResolution(Resolution value)
Resolution
|
void |
setRotationAngleF(float value)
BarCode image's rotation angle, measured in degree, e.g.
|
void |
setSupplementData(java.lang.String value)
SupplementData
|
void |
setSupplementSpace(float value)
SUPPLEMENT_SPACE
|
void |
setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)
TextRenderingHint
|
void |
setWideNarrowRatio(float value)
WideNarrowRatio
|
void |
setxDimension(float value)
x-dimension, smallest width unit of BarCode's bars or spaces.
|
void |
setyDimension(float value)
y-dimension
|
BaseEncodeType getEncodeType()
void setEncodeType(BaseEncodeType value)
value
- float getImageWidth()
void setImageWidth(float value)
float getImageHeight()
void setImageHeight(float value)
java.awt.image.BufferedImage getBarCodeImage()
float getxDimension()
void setxDimension(float value)
float getyDimension()
void setyDimension(float value)
java.awt.Color getBackColor()
void setBackColor(java.awt.Color value)
java.awt.Color getForeColor()
void setForeColor(java.awt.Color value)
boolean getAutoSize()
void setAutoSize(boolean value)
float getRotationAngleF()
void setRotationAngleF(float value)
GraphicsUnit getGraphicsUnit()
void setGraphicsUnit(GraphicsUnit value)
@Deprecated void setGraphicsUnit(int value)
boolean getBorderVisible()
void setBorderVisible(boolean value)
BorderDashStyle getBorderDashStyle()
void setBorderDashStyle(BorderDashStyle value)
@Deprecated void setBorderDashStyle(int value)
float getBorderWidth()
void setBorderWidth(float value)
java.awt.Color getBorderColor()
void setBorderColor(java.awt.Color value)
Caption getCaptionAbove()
void setCaptionAbove(Caption value)
Caption getCaptionBelow()
void setCaptionBelow(Caption value)
MarginsF getMargins()
Resolution getResolution()
void setResolution(Resolution value)
java.lang.String getCodeText()
void setCodeText(java.lang.String value)
java.lang.String getDisplay2DText()
void setDisplay2DText(java.lang.String value)
boolean getPdf417Truncate()
void setPdf417Truncate(boolean value)
Pdf417ErrorLevel getPdf417ErrorLevel()
void setPdf417ErrorLevel(Pdf417ErrorLevel value)
@Deprecated void setPdf417ErrorLevel(int value)
Pdf417CompactionMode getPdf417CompactionMode()
@Deprecated void setPdf417CompactionMode(int value)
void setPdf417CompactionMode(Pdf417CompactionMode value)
float getAspectRatio()
void setAspectRatio(float value)
int getColumns()
void setColumns(int value)
boolean getEnableEscape()
void setEnableEscape(boolean value)
EnableChecksum getEnableChecksum()
@Deprecated void setEnableChecksum(int value)
void setEnableChecksum(EnableChecksum value)
CustomerInformationInterpretingType getCustomerInformationInterpretingType()
@Deprecated void setCustomerInformationInterpretingType(int value)
void setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
float getBarHeight()
void setBarHeight(float value)
float getWideNarrowRatio()
void setWideNarrowRatio(float value)
java.awt.Color getCodeTextColor()
void setCodeTextColor(java.awt.Color value)
CodeLocation getCodeLocation()
void setCodeLocation(CodeLocation value)
StringAlignment getCodeTextAlignment()
@Deprecated void setCodeTextAlignment(int value)
void setCodeTextAlignment(StringAlignment value)
float getCodeTextSpace()
void setCodeTextSpace(float value)
short getCodabarStartSymbol()
void setCodabarStartSymbol(short value)
short getCodabarStopSymbol()
void setCodabarStopSymbol(short value)
java.awt.Font getCodeTextFont()
void setCodeTextFont(java.awt.Font value)
value
- CodeTextFontjava.lang.String getSupplementData()
void setSupplementData(java.lang.String value)
float getSupplementSpace()
void setSupplementSpace(float value)
ImageQualityMode getImageQuality()
@Deprecated void setImageQuality(int value)
void setImageQuality(ImageQualityMode value)
com.aspose.barcode.TextRenderingHint getTextRenderingHint()
void setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)
float getPostnetShortBarHeight()
void setPostnetShortBarHeight(float value)
float getPlanetShortBarHeight()
void setPlanetShortBarHeight(float value)
void rotate()
void rotate(float angle)
angle
- Rotation Anglevoid rotate(RotationDirection direction, float angle)
direction
- rotation directionangle
- rotation angle@Deprecated void rotate(int direction, float angle)
direction
- rotation directionangle
- rotation anglevoid save(java.lang.String filename) throws java.io.IOException
filename
- save to this file pathjava.io.IOException
void save(java.io.OutputStream stream, BarCodeImageFormat format) throws java.io.IOException
filename
- Save to this file pathformat
- The specific formatjava.io.IOException
void save(java.lang.String filename, BarCodeImageFormat format) throws java.io.IOException
filename
- save to this file pathformat
- The specific formatjava.io.IOException