public class BorderProperties
extends java.lang.Object
Contains specific configuration properties for barcode border.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getBorder().setVisible(true); generator.getBorder().setColor(Color.BLUE); generator.getBorder().setDashStyle(BorderDashStyle.DashDotDot); generator.getBorder().getWidth().setPixels(5); generator.save("test.png");
Constructor and Description |
---|
BorderProperties() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
BarCode Image's border's color.
|
int |
getDashStyle()
Border style of BarCode Image.
|
boolean |
getVisible()
Gets or sets a value indicating whether [border visible].
|
com.aspose.barcode.generation.Unit |
getWidth()
Border width of the BarCode image in
Unit value. |
void |
setColor(java.awt.Color value)
BarCode Image's border's color.
|
void |
setDashStyle(int value)
Border style of BarCode Image.
|
void |
setVisible(boolean value)
Gets or sets a value indicating whether [border visible].
|
void |
setWidth(com.aspose.barcode.generation.Unit value)
Border width of the BarCode image in
Unit value. |
public boolean getVisible()
Gets or sets a value indicating whether [border visible].
Value:true
if [border visible]; otherwise, false
.public void setVisible(boolean value)
Gets or sets a value indicating whether [border visible].
Value:true
if [border visible]; otherwise, false
.public com.aspose.barcode.generation.Unit getWidth()
Border width of the BarCode image in Unit
value.
ArgumentException
- <p>The <b>Width</b> parameter value is less than 0.</p>
public void setWidth(com.aspose.barcode.generation.Unit value)
Border width of the BarCode image in Unit
value.
ArgumentException
- <p>The <b>Width</b> parameter value is less than 0.</p>
public int getDashStyle()
Border style of BarCode Image.
public void setDashStyle(int value)
Border style of BarCode Image.
public java.awt.Color getColor()
BarCode Image's border's color.
public void setColor(java.awt.Color value)
BarCode Image's border's color.