barcodegenerator-ag凯发旗舰厅



com.spire.barcode
class barcodegenerator

java.lang.object
  extended by 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
           
 
constructor summary
barcodegenerator(ibarcodesettings settings)
          creates a new instance of the barcodegeneratorclass.
 
method summary
static void copysettings(ibarcodesettings srcsetting, ibarcodesettings settingscopyto)
          copy settings between ibarcodesettings.
 java.awt.image.bufferedimage generateimage()
          generates an image with the rendered barcode based on the settings ibarcodesettings.
 com.spire.ms.system.drawing.bitmap generateimage(java.awt.dimension barcodesize)
          generates an image with the rendered barcode based on the settings (ibarcodesettings).
static  getbarcodetype(barcodetype barcodetype)
          instantiates the barcode type asked by the settings.
 void print()
          print barcodeimage
 
field detail

properties

public static java.util.properties properties
constructor detail

barcodegenerator

public barcodegenerator(ibarcodesettings settings)
creates a new instance of the barcodegeneratorclass.
parameters:
settings - the settings to use.
throws:
if - the settings passed are
method detail

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


网站地图