barcodegenerator-ag凯发旗舰厅
com.spire.barcode
class barcodegenerator
java.lang.object
com.spire.barcode.barcodegenerator
public final class barcodegenerator
- extends java.lang.object
operates on ibarcodesettings
to provide barcode rendering and conversion services.
field summary |
static java.util.properties |
properties
|
properties
public static java.util.properties properties
barcodegenerator
public barcodegenerator(ibarcodesettings settings)
- creates a new instance of the
barcodegenerator
class.
- parameters:
settings
- the settings to use.
- throws:
if
- the settings passed are
generateimage
public java.awt.image.bufferedimage generateimage()
- generates an image with the rendered barcode based on the settings
ibarcodesettings.
- returns:
- the generated barcode image.
- throws:
barcodeformatexception
- if the data in the settings can't be rendered by the selected barcode.
generateimage
public com.spire.ms.system.drawing.bitmap generateimage(java.awt.dimension barcodesize)
- generates an image with the rendered barcode based on the settings (
ibarcodesettings
).
- parameters:
barcodesize
-
- returns:
- the generated barcode image.
- throws:
barcodeformatexception
- if the data in the settings can't be rendered by the selected barcode.
getbarcodetype
public static getbarcodetype(barcodetype barcodetype)
- instantiates the barcode type asked by the settings.
- parameters:
barcodetype
-
- returns:
- the instantiated barcode type.
- throws:
com.spire.ms.system.invalidoperationexception
- if the settings contain an invalid barcode type.
copysettings
public static void copysettings(ibarcodesettings srcsetting,
ibarcodesettings settingscopyto)
- copy settings between
ibarcodesettings
.
- parameters:
srcsetting
- settings to copy from.settingscopyto
- settings to copy to.
print
public void print()
- print barcodeimage