public final class ITFProperties
extends java.lang.Object
Contains specific configuration properties for ITF barcodes.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().getBorderThickness().setMillimeters(2); generator.save("test.png");
Constructor and Description |
---|
ITFProperties() |
Modifier and Type | Method and Description |
---|---|
Unit |
getBorderThickness()
Gets or sets an ITF14 border (bearer bar) thickness in Unit value.
|
ITF14BorderType |
getBorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
void |
setBorderThickness(Unit value)
Gets or sets an ITF14 border (bearer bar) thickness in Unit value.
|
void |
setBorderType(int value)
Deprecated.
|
void |
setBorderType(ITF14BorderType value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings.
|
public Unit getBorderThickness()
Gets or sets an ITF14 border (bearer bar) thickness in Unit value.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().getBorderThickness().setMillimeters(2); generator.save("test.png");
The BorderThickness parameter value is less than 0
public void setBorderThickness(Unit value)
Gets or sets an ITF14 border (bearer bar) thickness in Unit value.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().getBorderThickness().setMillimeters(2); generator.save("test.png");
java.lang.IllegalArgumentException
- The BorderThickness parameter value is less than 0
public ITF14BorderType getBorderType()
Border type of ITF14 barcode, quiet zone will be determined by margin settings. Default value is ITF14BorderType.BAR.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().setBorderType(ITF14BorderType.FRAME); generator.getITF().getBorderType(); generator.save("test.png");
public void setBorderType(ITF14BorderType value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings. Default value is ITF14BorderType.BAR.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().setBorderType(ITF14BorderType.FRAME); generator.save("test.png");
@Deprecated public void setBorderType(int value)
Border type of ITF14 barcode, quiet zone will be determined by margin settings. Default value is ITF14BorderType.BAR.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.ITF_14); generator.getITF().setBorderType(ITF14BorderType.FRAME); generator.save("test.png");