barcodecreator-ag凯发旗舰厅



com.spire.barcode.implementation.generator.generation
class barcodecreator

java.lang.object
  extended by com.spire.barcode.implementation.generator.generation.barcodecreator

public class barcodecreator
extends java.lang.object

barcodegenerator for backend barcode images generation.

supported symbology: 1d: codabar, code11, code128, code39standard, code39extended code93standard, code93extended, ean13, ean8, interleaved2of5, msi, standard2of5, upca, upce, booklandean, ean128, postnet, planet ean14, scc14, sscc18, itf14, singaporepost 2d: datamatrix, pdf417, qr code


constructor summary
barcodecreator()
          barcodegenerator's constructer, default symbologytype is code128, default codetext is 12345678
barcodecreator(java.lang.string codetext)
          barcodegenerator's constructer, default symbologytype is code128
barcodecreator(java.lang.string codetext,  type)
          barcodegenerator's constructer
 
method summary
 void dispose()
          deprecated. 
 com.spire.ms.system.drawing.bitmap generatebarcodeimage()
          generate the barcode image under current settings
 boolean getalwaysshowchecksum()
          always display checksum digit in the humanreadable text for code128 and ean128 barcodes.
 float getaspectratio()
          2d barcode's module's height/width ratio (ydimension/xdimension).
  getaustraliapostformatcontrolcode()
          australia post symbology type of barcode's formatcontrolcode, default to australiapostformatcontrolcode.standard" see .
 boolean getautosize()
          wether ajust image's size automatically.
 int getaztecterrorlevel()
          level of error corection of aztect types of barcode.
 com.spire.ms.system.drawing.color getbackcolor()
          background color of the barcode image see color.
 com.spire.ms.system.drawing.bitmap getbarcodeimage()
           
  getbarcodeimagecodecaptionabove()
           
 float getbarheight()
          height of 1d barcodes' bars.
 com.spire.ms.system.drawing.color getbordercolor()
          barcode image's border's color see color.
  getborderdashstyle()
          barcode image's border's style see .
 boolean getbordervisible()
          whether barcode image's border is visible see barcodecreator.getborderwidth().
 float getborderwidth()
          barcode image's border's width default graphics unit: millimeter see barcodecreator.getbordervisible().
 codabarchar getcodabarstartsymbol()
          start symbol (character) of codabar symbology see barcodecreator.getcodabarstopsymbol().
 codabarchar getcodabarstopsymbol()
          stop symbol (character) of codabar symbology see barcodecreator.getcodabarstartsymbol().
 code128setmode getcode128codeset()
           
  getcodecaptionabove()
          codecaption above the barcode image.
  getcodecaptionbelow()
          codecaption below the barcode image.
  getcodecaptionlogoimage()
           
 java.lang.string getcodetext()
          data to be encoded, different types of barcode may have different codetext length restrictions see barcodecreator.getenableescape().
 stringalignment getcodetextalignment()
          gets the alignment of the code text.
 com.spire.ms.system.drawing.color getcodetextcolor()
          specify the displaying codetext's color see barcodecreator.getcodetext().
 com.spire.ms.system.text.encoding getcodetextencoding()
          gets the encoding of codetext.
 com.spire.ms.system.drawing.font getcodetextfont()
          specify the displaying codetext's font see barcodecreator.getcodetext() .
 float getcodetextspace()
          space between the codetext and the barcode.
 int getcolumns()
          2d barcode's columns, if setting is illegal then columns will be calculated automatically appliable symbologytype: pdf417
 com.spire.ms.system.drawing.bitmap getcustomsizebarcodeimage(com.spire.ms.system.drawing.size custombarcodesize, boolean allowspacearound)
          gets the scaled barcode image.
  getdatamatrixencodemode()
          encode mode of datamatrix barcode, default to auto .
 java.lang.string getdisplay2dtext()
          gets the text will displayed on the barcode's image.
  getean128encodemode()
           
  getenablechecksum()
          enable checksum during generation for 1d barcodes. default is treated as yes for symbologies which must contain checksum, as no where checksum only possible. checksum never used: codabar checksum is possible: code39 standard/extended, standard2of5, interleaved2of5, matrix2of5, italianpost25, deutschepostidentcode, deutschepostleitcode, vin checksum always used: rest symbologies
 boolean getenableescape()
          indicates whether explains the character "\" as an escape character in codetext property.
 com.spire.ms.system.drawing.color getforecolor()
          foreground color of the barcode image, that is, bar's color of 1d barcode, module's color of 2d barcode see color.
 graphicsunit getgraphicsunit()
          measurement of various properties such as width, height etc.
 float getimageheight()
          barcode image's height see barcodecreator.getautosize()., if autosize is true, imageheight will be increased accordingly default graphics unit: millimeter
  getimagequality()
          graphics quality mode, when rotationanglef not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
 float getimagewidth()
          barcode image's width see barcodecreator.getautosize(), if autosize is true, imagewidth will be increased accordingly default graphics unit: millimeter
  getitf14bordertype()
          border type of itf14 barcode, quiet zone will be determined by margin settings.
 int getmacropdf417fileid()
          gets macro pdf417 barcode's file id.
 int getmacropdf417segmentid()
          gets macro pdf417 barcode's segment id, which starts from 0, to macropdf417segmentcount - 1.
 int getmacropdf417segmentscount()
          gets whether this macro pdf417 barcode is the last segment.
  getmargins()
          margin area around the core barcode image if autosize is false, then width and height is fixed, thus margins setting will be ignored default graphics unit: millimeter
 pdf417datamode getpdf417compactionmode()
          pdf417 symbology type of barcode's compaction mode, default compaction mode is auto see pdf417datamode.
 pdf417ecl getpdf417errorlevel()
          gets pdf417 symbology type of barcode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture
 boolean getpdf417truncate()
          whether pdf417 symbology type of barcode is truncated (to reduce space)
 float getplanetshortbarheight()
          short bar's height of planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
 float getpostnetshortbarheight()
          short bar's height of postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
 java.lang.string getprintername()
          choose printer, if not specified, print() method will choose the first available printer
 qrcodedatamode getqrencodemode()
          qr symbology type of barcode's encoding mode, default mode is auto see qrcodedatamode.
 qrcodeecl getqrerrorlevel()
          level of reed-solomon error correction for qr barcode.
  getresolution()
          gets the resolution of the barcode image see .
 float getrotationanglef()
          barcode image's rotation angle, measured in degree, e.g.
 int getrows()
          2d barcode's rows, if setting is illegal then rows will be calculated automatically.
 java.lang.string getsupplementdata()
          supplement data following barcodes of symbology upca, upce, ean13, ean8, booklandean, interleaved2of5 or standard2of5.
 float getsupplementspace()
          space between main the barcode and supplement barcode, default graphics unit: millimeter see graphicsunit.
  getsymbologytype()
          barcode's symbology, type: spire.barcode.symbologytype see .
  gettextlocation()
          specify the displaying codetext's location, set to textlocation.none to hide codetext.
 textrenderinghint gettextrenderinghint()
          specifies the quality of text rendering.
 boolean getthrowexceptionwhencodetextincorrect()
          only for 1d barcodes.
 float getwidenarrowratio()
          wide bars to narrow bars ratio for some 1d barcode.
 float getxpos()
          x-dimension, smallest width unit of barcode's bars or spaces.
 float getypos()
          y-dimension, smallest height unit of 2d barcode's modules.
 void insertwatermark()
           
 void print()
          print barcodeimage see barcodecreator.getprintername().
 void rotate()
          rotate barcode image clockwise for 90 degrees
 void rotate(float angle)
          rotate barcode image clockwise
 void rotate( direction, float angle)
          rotate the barcode image
 void (com.spire.ms.system.io.stream stream,  format)
          save barcodeimage to stream in specific format
 void save(com.spire.ms.system.io.stream stream, com.spire.ms.system.drawing.imaging.imageformat 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,  format)
          save barcodeimage to specific file in specific format
 void save(java.lang.string filename, com.spire.ms.system.drawing.imaging.imageformat format)
          save barcodeimage to specific file in specific format
 void saveasemf(com.spire.ms.system.io.stream stream)
          save the barcode as emf to stream.
 void saveasemf(java.lang.string filename)
          save the barcode as emf file using given file name.
 void setalwaysshowchecksum(boolean value)
          always display checksum digit in the humanreadable text for code128 and ean128 barcodes.
 void setaspectratio(float value)
          2d barcode's module's height/width ratio (ydimension/xdimension).
 void ( value)
          australia post symbology type of barcode's formatcontrolcode, default to australiapostformatcontrolcode.standard" see .
 void setautosize(boolean value)
          wether ajust image's size automatically.
 void setaztecterrorlevel(int value)
          level of error corection of aztect types of barcode.
 void setbackcolor(com.spire.ms.system.drawing.color value)
          background color of the barcode image see color.
 void setbarheight(float value)
          height of 1d barcodes' bars.
 void setbinarycodetext(byte[] codetext)
          set the data to be encoded.
 void setbordercolor(com.spire.ms.system.drawing.color value)
          barcode image's border's color see color.
 void setborderdashstyle( value)
          barcode image's border's style see .
 void setbordervisible(boolean value)
          whether barcode image's border is visible see barcodecreator.getborderwidth().
 void setborderwidth(float value)
          barcode image's border's width default graphics unit: millimeter see barcodecreator.getbordervisible().
 void setcodabarstartsymbol(codabarchar value)
          start symbol (character) of codabar symbology see barcodecreator.getcodabarstopsymbol().
 void setcodabarstopsymbol(codabarchar value)
          stop symbol (character) of codabar symbology see barcodecreator.getcodabarstartsymbol().
 void setcode128codeset(code128setmode value)
           
 void setcodecaptionabove( value)
          codecaption above the barcode image.
 void setcodecaptionbelow( value)
          codecaption below the barcode image.
 void setcodecaptionlogoimage( _logocodecaption)
           
 void setcodetext(java.lang.string value)
          data to be encoded, different types of barcode may have different codetext length restrictions see barcodecreator.getenableescape().
 void setcodetextalignment(stringalignment value)
          sets the alignment of the code text.
 void setcodetextcolor(com.spire.ms.system.drawing.color value)
          specify the displaying codetext's color see barcodecreator.getcodetext().
 void setcodetextencoding(com.spire.ms.system.text.encoding value)
          sets the encoding of codetext.
 void setcodetextfont(com.spire.ms.system.drawing.font value)
          specify the displaying codetext's font see barcodecreator.getcodetext() .
 void setcodetextspace(float value)
          space between the codetext and the barcode.
 void setcolumns(int value)
          2d barcode's columns, if setting is illegal then columns will be calculated automatically appliable symbologytype: pdf417
 void setdatamatrixencodemode( value)
          encode mode of datamatrix barcode, default to auto .
 void setdisplay2dtext(java.lang.string value)
          sets the text will displayed on the barcode's image.
 void setenablechecksum( value)
          enable checksum during generation for 1d barcodes. default is treated as yes for symbologies which must contain checksum, as no where checksum only possible. checksum never used: codabar checksum is possible: code39 standard/extended, standard2of5, interleaved2of5, matrix2of5, italianpost25, deutschepostidentcode, deutschepostleitcode, vin checksum always used: rest symbologies
 void setenableescape(boolean value)
          indicates whether explains the character "\" as an escape character in codetext property.
 void setforecolor(com.spire.ms.system.drawing.color value)
          foreground color of the barcode image, that is, bar's color of 1d barcode, module's color of 2d barcode see color.
 void setgraphicsunit(graphicsunit value)
          measurement of various properties such as width, height etc.
 void setimageheight(float value)
          barcode image's height see barcodecreator.getautosize()., if autosize is true, imageheight will be increased accordingly default graphics unit: millimeter
 void setimagequality( value)
          graphics quality mode, when rotationanglef not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
 void setimagewidth(float value)
          barcode image's width see barcodecreator.getautosize(), if autosize is true, imagewidth will be increased accordingly default graphics unit: millimeter
 void setitf14bordertype( value)
          border type of itf14 barcode, quiet zone will be determined by margin settings.
 void setmacropdf417fileid(int value)
          sets macro pdf417 barcode's file id.
 void setmacropdf417segmentid(int value)
          sets macro pdf417 barcode's segment id, which starts from 0, to macropdf417segmentcount - 1.
 void setmacropdf417segmentscount(int value)
          sets whether this macro pdf417 barcode is the last segment.
 void setpdf417compactionmode(pdf417datamode value)
          pdf417 symbology type of barcode's compaction mode, default compaction mode is auto see pdf417datamode.
 void setpdf417errorlevel(pdf417ecl value)
          sets pdf417 symbology type of barcode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture
 void setpdf417truncate(boolean value)
          whether pdf417 symbology type of barcode is truncated (to reduce space)
 void setplanetshortbarheight(float value)
          short bar's height of planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
 void setpostnetshortbarheight(float value)
          short bar's height of postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
 void setprintername(java.lang.string value)
          choose printer, if not specified, print() method will choose the first available printer
 void setqrencodemode(qrcodedatamode value)
          qr symbology type of barcode's encoding mode, default mode is auto see qrcodedatamode.
 void setqrerrorlevel(qrcodeecl value)
          level of reed-solomon error correction for qr barcode.
 void setresolution( value)
          sets the resolution of the barcode image
 void setrotationanglef(float value)
          barcode image's rotation angle, measured in degree, e.g.
 void setrows(int value)
          2d barcode's rows, if setting is illegal then rows will be calculated automatically.
 void setsupplementdata(java.lang.string value)
          supplement data following barcodes of symbology upca, upce, ean13, ean8, booklandean, interleaved2of5 or standard2of5.
 void setsupplementspace(float value)
          space between main the barcode and supplement barcode, default graphics unit: millimeter see graphicsunit.
 void setsymbologytype( value)
          barcode's symbology, type: spire.barcode.symbologytype see .
 void settextlocation( value)
          specify the displaying codetext's location, set to textlocation.none to hide codetext.
 void settextrenderinghint(textrenderinghint value)
          specifies the quality of text rendering.
 void setthrowexceptionwhencodetextincorrect(boolean value)
          only for 1d barcodes.
 void setwidenarrowratio(float value)
          wide bars to narrow bars ratio for some 1d barcode.
 void setxpos(float value)
          x-dimension, smallest width unit of barcode's bars or spaces.
 void setypos(float value)
          y-dimension, smallest height unit of 2d barcode's modules.
 java.lang.string tostring()
          overried to string method
 
constructor detail

barcodecreator

public barcodecreator()
barcodegenerator's constructer, default symbologytype is code128, default codetext is 12345678

barcodecreator

public barcodecreator(java.lang.string codetext)
barcodegenerator's constructer, default symbologytype is code128
parameters:
codetext - string text data to be encoded

barcodecreator

public barcodecreator(java.lang.string codetext,
                       type)
barcodegenerator's constructer
parameters:
codetext - string text data to be encoded
type - barcode's type: spire.barcode.symbologytype
method detail

getbarcodeimagecodecaptionabove

public  getbarcodeimagecodecaptionabove()

getsymbologytype

public  getsymbologytype()
barcode's symbology, type: spire.barcode.symbologytype see . supported symbology: 1d: codabar, code11, code128, code39standard, code39extended code93standard, code93extended, ean13, ean8, interleaved2of5, msi, standard2of5, upca, upce, ean14, scc14, sscc18, itf14, onecode, singaporepost 2d: datamatrix, pdf417,macropdf

setsymbologytype

public void setsymbologytype( value)
barcode's symbology, type: spire.barcode.symbologytype see . supported symbology: 1d: codabar, code11, code128, code39standard, code39extended code93standard, code93extended, ean13, ean8, interleaved2of5, msi, standard2of5, upca, upce, ean14, scc14, sscc18, itf14, onecode, singaporepost 2d: datamatrix, pdf417,macropdf

getcodetext

public java.lang.string getcodetext()
data to be encoded, different types of barcode may have different codetext length restrictions see barcodecreator.getenableescape(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment().

setcodetext

public void setcodetext(java.lang.string value)
data to be encoded, different types of barcode may have different codetext length restrictions see barcodecreator.getenableescape(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment().

setbinarycodetext

public void setbinarycodetext(byte[] codetext)
set the data to be encoded.
parameters:
codetext -

getdisplay2dtext

public java.lang.string getdisplay2dtext()
gets the text will displayed on the barcode's image. available only for 2d barcodes. limited to 1000 chars.
returns:
the text to display.

setdisplay2dtext

public void setdisplay2dtext(java.lang.string value)
sets the text will displayed on the barcode's image. available only for 2d barcodes. limited to 1000 chars.
parameters:
value - the text to display.

getcodetextencoding

public com.spire.ms.system.text.encoding getcodetextencoding()
gets the encoding of codetext.
returns:
the encoding for codetext.

setcodetextencoding

public void setcodetextencoding(com.spire.ms.system.text.encoding value)
sets the encoding of codetext.
parameters:
value - the encoding for codetext.

getenableescape

public boolean getenableescape()
indicates whether explains the character "\" as an escape character in codetext property. see barcodecreator.getcodetext(). if the enableescape is true, "\" will be explained as a special escape character. otherwise, "\" acts as normal characters. spire.barcode supports inputing decimal ascii code and mnemonic for ascii control-code characters, 0 through 31. for example, \013 and \cr stands for cr.

setenableescape

public void setenableescape(boolean value)
indicates whether explains the character "\" as an escape character in codetext property. see barcodecreator.getcodetext(). if the enableescape is true, "\" will be explained as a special escape character. otherwise, "\" acts as normal characters. spire.barcode supports inputing decimal ascii code and mnemonic for ascii control-code characters, 0 through 31. for example, \013 and \cr stands for cr.

getcodetextfont

public com.spire.ms.system.drawing.font getcodetextfont()
specify the displaying codetext's font see barcodecreator.getcodetext() . see font. see barcodecreator.getcodetextcolor(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment().

setcodetextfont

public void setcodetextfont(com.spire.ms.system.drawing.font value)
specify the displaying codetext's font see barcodecreator.getcodetext() . see font. see barcodecreator.getcodetextcolor(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment().

getcodetextcolor

public com.spire.ms.system.drawing.color getcodetextcolor()
specify the displaying codetext's color see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment() .
returns:
color

setcodetextcolor

public void setcodetextcolor(com.spire.ms.system.drawing.color value)
specify the displaying codetext's color see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see . see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextalignment() .

gettextlocation

public  gettextlocation()
specify the displaying codetext's location, set to textlocation.none to hide codetext. textlocation will be ignored if symbologytype is upce, upca, booklandean, ean8 or ean13 see . see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextalignment().

settextlocation

public void settextlocation( value)
specify the displaying codetext's location, set to textlocation.none to hide codetext. textlocation will be ignored if symbologytype is upce, upca, booklandean, ean8 or ean13 see . see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextspace(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextalignment().

getcodetextalignment

public stringalignment getcodetextalignment()
gets the alignment of the code text. see stringalignment. see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextspace(). stringalignment.near means codetext will be aligned to the left stringalignment.far means codetext will be aligned to the right stringalignment.center means codetext will be aligned to the center

setcodetextalignment

public void setcodetextalignment(stringalignment value)
sets the alignment of the code text.
parameters:
value - see stringalignment. see barcodecreator.getcodetext(). see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextspace(). stringalignment.near means codetext will be aligned to the left stringalignment.far means codetext will be aligned to the right stringalignment.center means codetext will be aligned to the center

getrotationanglef

public float getrotationanglef()
barcode image's rotation angle, measured in degree, e.g. rotationanglef = 0 or rotationanglef = 360 means no rotation if rotationanglef not equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias

setrotationanglef

public void setrotationanglef(float value)
barcode image's rotation angle, measured in degree, e.g. rotationanglef = 0 or rotationanglef = 360 means no rotation if rotationanglef not equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias

getcodecaptionabove

public  getcodecaptionabove()
codecaption above the barcode image. see . codecaptionabove contains the following properties: codecaptionabove.font, codecaptionabove.forecolor, codecaptionabove.space, codecaptionabove.visible, codecaptionabove.text, codecaptionabove.textalign

setcodecaptionabove

public void setcodecaptionabove( value)
codecaption above the barcode image. see . codecaptionabove contains the following properties: codecaptionabove.font, codecaptionabove.forecolor, codecaptionabove.space, codecaptionabove.visible, codecaptionabove.text, codecaptionabove.textalign

getcodecaptionbelow

public  getcodecaptionbelow()
codecaption below the barcode image. see . codecaptionbelow contains the following properties: codecaptionbelow.font, codecaptionbelow.forecolor, codecaptionbelow.space, codecaptionbelow.visible, codecaptionbelow.text, codecaptionbelow.textalign

setcodecaptionbelow

public void setcodecaptionbelow( value)
codecaption below the barcode image. see . codecaptionbelow contains the following properties: codecaptionbelow.font, codecaptionbelow.forecolor, codecaptionbelow.space, codecaptionbelow.visible, codecaptionbelow.text, codecaptionbelow.textalign

getgraphicsunit

public graphicsunit getgraphicsunit()
measurement of various properties such as width, height etc. default graphicsunit: millimeter see graphicsunit.

setgraphicsunit

public void setgraphicsunit(graphicsunit value)
measurement of various properties such as width, height etc. default graphicsunit: millimeter see graphicsunit.

getresolution

public  getresolution()
gets the resolution of the barcode image see .
returns:
resolution

setresolution

public void setresolution( value)
sets the resolution of the barcode image
parameters:
value - see .

getprintername

public java.lang.string getprintername()
choose printer, if not specified, print() method will choose the first available printer
returns:
string

setprintername

public void setprintername(java.lang.string value)
choose printer, if not specified, print() method will choose the first available printer

getimagequality

public  getimagequality()
graphics quality mode, when rotationanglef not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. type: spire.barcode.imagequalitymode see .

setimagequality

public void setimagequality( value)
graphics quality mode, when rotationanglef not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. type: spire.barcode.imagequalitymode see .

gettextrenderinghint

public textrenderinghint gettextrenderinghint()
specifies the quality of text rendering.

settextrenderinghint

public void settextrenderinghint(textrenderinghint value)
specifies the quality of text rendering.

getautosize

public boolean getautosize()
wether ajust image's size automatically. recommended:true

setautosize

public void setautosize(boolean value)
wether ajust image's size automatically. recommended:true

getimagewidth

public float getimagewidth()
barcode image's width see barcodecreator.getautosize(), if autosize is true, imagewidth will be increased accordingly default graphics unit: millimeter

setimagewidth

public void setimagewidth(float value)
barcode image's width see barcodecreator.getautosize(), if autosize is true, imagewidth will be increased accordingly default graphics unit: millimeter

getimageheight

public float getimageheight()
barcode image's height see barcodecreator.getautosize()., if autosize is true, imageheight will be increased accordingly default graphics unit: millimeter

setimageheight

public void setimageheight(float value)
barcode image's height see barcodecreator.getautosize()., if autosize is true, imageheight will be increased accordingly default graphics unit: millimeter

getborderwidth

public float getborderwidth()
barcode image's border's width default graphics unit: millimeter see barcodecreator.getbordervisible(). see . see barcodecreator.getbordercolor().

setborderwidth

public void setborderwidth(float value)
barcode image's border's width default graphics unit: millimeter see barcodecreator.getbordervisible(). see . see barcodecreator.getbordercolor().

getxpos

public float getxpos()
x-dimension, smallest width unit of barcode's bars or spaces. increase this will increase the whole barcode image's width if autosize is true default graphics unit: millimeter
see also:
, barcodecreator.getautosize(), barcodecreator.getbarheight()

setxpos

public void setxpos(float value)
x-dimension, smallest width unit of barcode's bars or spaces. increase this will increase the whole barcode image's width if autosize is true default graphics unit: millimeter
see also:
, barcodecreator.getautosize(), barcodecreator.getbarheight()

getypos

public float getypos()
y-dimension, smallest height unit of 2d barcode's modules. some square symbols (such as datamatrix) may ignore this and use x-dimension for both width unit and height unit

in 2d barcode, y-dimension * rows determines barcode's height in 1d barcode, barheight determines barcode's height. default graphics unit: millimeter

see also:
, barcodecreator.getbarheight()

setypos

public void setypos(float value)
y-dimension, smallest height unit of 2d barcode's modules. some square symbols (such as datamatrix) may ignore this and use x-dimension for both width unit and height unit

in 2d barcode, y-dimension * rows determines barcode's height in 1d barcode, barheight determines barcode's height. default graphics unit: millimeter

see also:
, barcodecreator.getbarheight()

getbarheight

public float getbarheight()
height of 1d barcodes' bars. in 2d barcode, y-dimension * rows determines barcode's height in 1d barcode, barheight determines barcode's height. default graphics unit: millimeter see .
see also:

setbarheight

public void setbarheight(float value)
height of 1d barcodes' bars. in 2d barcode, y-dimension * rows determines barcode's height in 1d barcode, barheight determines barcode's height. default graphics unit: millimeter see .
see also:

getaspectratio

public float getaspectratio()
2d barcode's module's height/width ratio (ydimension/xdimension). calculated based on xdimension set to 0 means not using this feature. see . see
see also:

setaspectratio

public void setaspectratio(float value)
2d barcode's module's height/width ratio (ydimension/xdimension). calculated based on xdimension set to 0 means not using this feature. see . see
see also:

getmargins

public  getmargins()
margin area around the core barcode image if autosize is false, then width and height is fixed, thus margins setting will be ignored default graphics unit: millimeter

getsupplementspace

public float getsupplementspace()
space between main the barcode and supplement barcode, default graphics unit: millimeter see graphicsunit. see barcodecreator.getsupplementdata().

setsupplementspace

public void setsupplementspace(float value)
space between main the barcode and supplement barcode, default graphics unit: millimeter see graphicsunit. see barcodecreator.getsupplementdata().

getpostnetshortbarheight

public float getpostnetshortbarheight()
short bar's height of postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). to set up tall bar's height, see barheight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see graphicsunit. see setting tall bar's height: see barcodecreator.getbarheight().

setpostnetshortbarheight

public void setpostnetshortbarheight(float value)
short bar's height of postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). to set up tall bar's height, see barheight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see graphicsunit. see setting tall bar's height: see barcodecreator.getbarheight().

getplanetshortbarheight

public float getplanetshortbarheight()
short bar's height of planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see graphicsunit. see setting tall bar's height: see barcodecreator.getbarheight() }.

setplanetshortbarheight

public void setplanetshortbarheight(float value)
short bar's height of planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see graphicsunit. see setting tall bar's height: see barcodecreator.getbarheight() }.

getcodetextspace

public float getcodetextspace()
space between the codetext and the barcode. default graphics unit: millimeter see barcodecreator.getcodetext(). see . see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextalignment().

setcodetextspace

public void setcodetextspace(float value)
space between the codetext and the barcode. default graphics unit: millimeter see barcodecreator.getcodetext(). see . see barcodecreator.getcodetextfont(). see barcodecreator.getcodetextcolor(). see barcodecreator.getcodetextalignment().

getbarcodeimage

public com.spire.ms.system.drawing.bitmap getbarcodeimage()

getbordervisible

public boolean getbordervisible()
whether barcode image's border is visible see barcodecreator.getborderwidth(). see . see barcodecreator.getbordercolor().

setbordervisible

public void setbordervisible(boolean value)
whether barcode image's border is visible see barcodecreator.getborderwidth(). see . see barcodecreator.getbordercolor().

getbordercolor

public com.spire.ms.system.drawing.color getbordercolor()
barcode image's border's color see color. see barcodecreator.getborderwidth(). see barcodecreator.getbordervisible(). see barcodecreator.getborderdashstyle()

setbordercolor

public void setbordercolor(com.spire.ms.system.drawing.color value)
barcode image's border's color see color. see barcodecreator.getborderwidth(). see barcodecreator.getbordervisible(). see barcodecreator.getborderdashstyle()

getborderdashstyle

public  getborderdashstyle()
barcode image's border's style see . see barcodecreator.getborderwidth() }. see barcodecreator.getbordervisible(). see barcodecreator.getbordercolor().

setborderdashstyle

public void setborderdashstyle( value)
barcode image's border's style see . see barcodecreator.getborderwidth() }. see barcodecreator.getbordervisible(). see barcodecreator.getbordercolor().

getcodabarstartsymbol

public codabarchar getcodabarstartsymbol()
start symbol (character) of codabar symbology see barcodecreator.getcodabarstopsymbol(). see codabarchar.

setcodabarstartsymbol

public void setcodabarstartsymbol(codabarchar value)
start symbol (character) of codabar symbology see barcodecreator.getcodabarstopsymbol(). see codabarchar.

getcodabarstopsymbol

public codabarchar getcodabarstopsymbol()
stop symbol (character) of codabar symbology see barcodecreator.getcodabarstartsymbol(). see codabarchar.

setcodabarstopsymbol

public void setcodabarstopsymbol(codabarchar value)
stop symbol (character) of codabar symbology see barcodecreator.getcodabarstartsymbol(). see codabarchar.

getcode128codeset

public code128setmode getcode128codeset()

setcode128codeset

public void setcode128codeset(code128setmode value)

getean128encodemode

public  getean128encodemode()

getaustraliapostformatcontrolcode

public  getaustraliapostformatcontrolcode()
australia post symbology type of barcode's formatcontrolcode, default to australiapostformatcontrolcode.standard" see .

setaustraliapostformatcontrolcode

public void setaustraliapostformatcontrolcode( value)
australia post symbology type of barcode's formatcontrolcode, default to australiapostformatcontrolcode.standard" see .

getitf14bordertype

public  getitf14bordertype()
border type of itf14 barcode, quiet zone will be determined by margin settings. see margins.

setitf14bordertype

public void setitf14bordertype( value)
border type of itf14 barcode, quiet zone will be determined by margin settings. see margins.

getforecolor

public com.spire.ms.system.drawing.color getforecolor()
foreground color of the barcode image, that is, bar's color of 1d barcode, module's color of 2d barcode see color.

setforecolor

public void setforecolor(com.spire.ms.system.drawing.color value)
foreground color of the barcode image, that is, bar's color of 1d barcode, module's color of 2d barcode see color.

getbackcolor

public com.spire.ms.system.drawing.color getbackcolor()
background color of the barcode image see color.

setbackcolor

public void setbackcolor(com.spire.ms.system.drawing.color value)
background color of the barcode image see color.

getenablechecksum

public  getenablechecksum()
enable checksum during generation for 1d barcodes. default is treated as yes for symbologies which must contain checksum, as no where checksum only possible. checksum never used: codabar checksum is possible: code39 standard/extended, standard2of5, interleaved2of5, matrix2of5, italianpost25, deutschepostidentcode, deutschepostleitcode, vin checksum always used: rest symbologies

setenablechecksum

public void setenablechecksum( value)
enable checksum during generation for 1d barcodes. default is treated as yes for symbologies which must contain checksum, as no where checksum only possible. checksum never used: codabar checksum is possible: code39 standard/extended, standard2of5, interleaved2of5, matrix2of5, italianpost25, deutschepostidentcode, deutschepostleitcode, vin checksum always used: rest symbologies

getthrowexceptionwhencodetextincorrect

public boolean getthrowexceptionwhencodetextincorrect()
only for 1d barcodes. if codetext is incorrect and value set to true - exception will be thrown. overwise codetext will be corrected to match barcode's specification. exception always will be thrown for: databar symbologies if codetext is incorrect. exception always will not be thrown for: australiapost, singapurepost, code39extended, code93extended, code16k, code128 symbologies if codetext is incorrect.

setthrowexceptionwhencodetextincorrect

public void setthrowexceptionwhencodetextincorrect(boolean value)
only for 1d barcodes. if codetext is incorrect and value set to true - exception will be thrown. overwise codetext will be corrected to match barcode's specification. exception always will be thrown for: databar symbologies if codetext is incorrect. exception always will not be thrown for: australiapost, singapurepost, code39extended, code93extended, code16k, code128 symbologies if codetext is incorrect.

getcolumns

public int getcolumns()
2d barcode's columns, if setting is illegal then columns will be calculated automatically appliable symbologytype: pdf417

setcolumns

public void setcolumns(int value)
2d barcode's columns, if setting is illegal then columns will be calculated automatically appliable symbologytype: pdf417

getrows

public int getrows()
2d barcode's rows, if setting is illegal then rows will be calculated automatically. appliable symbologytype: pdf417

setrows

public void setrows(int value)
2d barcode's rows, if setting is illegal then rows will be calculated automatically. appliable symbologytype: pdf417

getdatamatrixencodemode

public  getdatamatrixencodemode()
encode mode of datamatrix barcode, default to auto .

setdatamatrixencodemode

public void setdatamatrixencodemode( value)
encode mode of datamatrix barcode, default to auto .

getpdf417compactionmode

public pdf417datamode getpdf417compactionmode()
pdf417 symbology type of barcode's compaction mode, default compaction mode is auto see pdf417datamode.

setpdf417compactionmode

public void setpdf417compactionmode(pdf417datamode value)
pdf417 symbology type of barcode's compaction mode, default compaction mode is auto see pdf417datamode.

getpdf417truncate

public boolean getpdf417truncate()
whether pdf417 symbology type of barcode is truncated (to reduce space)

setpdf417truncate

public void setpdf417truncate(boolean value)
whether pdf417 symbology type of barcode is truncated (to reduce space)

getpdf417errorlevel

public pdf417ecl getpdf417errorlevel()
gets pdf417 symbology type of barcode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture

setpdf417errorlevel

public void setpdf417errorlevel(pdf417ecl value)
sets pdf417 symbology type of barcode's error coccrection level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture
parameters:
value -

getmacropdf417segmentscount

public int getmacropdf417segmentscount()
gets whether this macro pdf417 barcode is the last segment.

setmacropdf417segmentscount

public void setmacropdf417segmentscount(int value)
sets whether this macro pdf417 barcode is the last segment.
parameters:
value -

getmacropdf417segmentid

public int getmacropdf417segmentid()
gets macro pdf417 barcode's segment id, which starts from 0, to macropdf417segmentcount - 1.

setmacropdf417segmentid

public void setmacropdf417segmentid(int value)
sets macro pdf417 barcode's segment id, which starts from 0, to macropdf417segmentcount - 1.
parameters:
value -

getmacropdf417fileid

public int getmacropdf417fileid()
gets macro pdf417 barcode's file id.

setmacropdf417fileid

public void setmacropdf417fileid(int value)
sets macro pdf417 barcode's file id.
parameters:
value -

getwidenarrowratio

public float getwidenarrowratio()
wide bars to narrow bars ratio for some 1d barcode. default widenarrowratio:3, that is, wide bars are 3 times as wide as narrow bars appliable symbology: code39extended, code39standard, standard2of5, interleaved2of5, pharmacode see .

setwidenarrowratio

public void setwidenarrowratio(float value)
wide bars to narrow bars ratio for some 1d barcode. default widenarrowratio:3, that is, wide bars are 3 times as wide as narrow bars appliable symbology: code39extended, code39standard, standard2of5, interleaved2of5, pharmacode see .

getsupplementdata

public java.lang.string getsupplementdata()
supplement data following barcodes of symbology upca, upce, ean13, ean8, booklandean, interleaved2of5 or standard2of5. see . see barcodecreator.getsupplementspace().

setsupplementdata

public void setsupplementdata(java.lang.string value)
supplement data following barcodes of symbology upca, upce, ean13, ean8, booklandean, interleaved2of5 or standard2of5. see . see barcodecreator.getsupplementspace().

getqrerrorlevel

public qrcodeecl getqrerrorlevel()
level of reed-solomon error correction for qr barcode. from low to high: levell, levelm, levelq, levelh. see barcodecreator.getqrerrorlevel().

setqrerrorlevel

public void setqrerrorlevel(qrcodeecl value)
level of reed-solomon error correction for qr barcode. from low to high: levell, levelm, levelq, levelh. see barcodecreator.getqrerrorlevel().

getqrencodemode

public qrcodedatamode getqrencodemode()
qr symbology type of barcode's encoding mode, default mode is auto see qrcodedatamode.

setqrencodemode

public void setqrencodemode(qrcodedatamode value)
qr symbology type of barcode's encoding mode, default mode is auto see qrcodedatamode.

getaztecterrorlevel

public int getaztecterrorlevel()
level of error corection of aztect types of barcode. value should between 10 to 95

setaztecterrorlevel

public void setaztecterrorlevel(int value)
level of error corection of aztect types of barcode. value should between 10 to 95

getalwaysshowchecksum

public boolean getalwaysshowchecksum()
always display checksum digit in the humanreadable text for code128 and ean128 barcodes.
returns:
boolean

setalwaysshowchecksum

public void setalwaysshowchecksum(boolean value)
always display checksum digit in the humanreadable text for code128 and ean128 barcodes.
parameters:
value -

insertwatermark

public void insertwatermark()

dispose

@deprecated
public void dispose()
deprecated. 
clean up any resources being used.

generatebarcodeimage

public com.spire.ms.system.drawing.bitmap generatebarcodeimage()
generate the barcode image under current settings
returns:
barcode image see bitmap

saveasemf

public void saveasemf(java.lang.string filename)
save the barcode as emf file using given file name.
parameters:
filename - the file name.
throws:
java.lang.exception

saveasemf

public void saveasemf(com.spire.ms.system.io.stream stream)
save the barcode as emf to stream.
parameters:
stream - system.io.stream
throws:
java.lang.exception

rotate

public void rotate()
rotate barcode image clockwise for 90 degrees

rotate

public void rotate(float angle)
rotate barcode image clockwise
parameters:
angle - rotation angle

rotate

public void rotate( direction,
                   float angle)
rotate the barcode image
parameters:
direction - rotation direction
angle - rotation angle

print

public void print()
print barcodeimage see barcodecreator.getprintername().

getcustomsizebarcodeimage

public com.spire.ms.system.drawing.bitmap getcustomsizebarcodeimage(com.spire.ms.system.drawing.size custombarcodesize,
                                                                    boolean allowspacearound)
gets the scaled barcode image.
parameters:
custombarcodesize - barcode full image size. default graphics unit: millimeter.
allowspacearound - if set to true allow space around the barcode.
returns:
image's bitmap.

save

public void save(com.spire.ms.system.io.stream stream,
                 com.spire.ms.system.drawing.imaging.imageformat format)
save barcodeimage to specific file in specific format
parameters:
stream - system.io.stream
format - system.drawing.imaging.imageformat

save

public void save(com.spire.ms.system.io.stream stream,
                  format)
save barcodeimage to stream in specific format
parameters:
stream - system.io.stream
format - specifies the file format of the image.

save

public void save(java.lang.string filename)
save barcodeimage to specific file in specific format
parameters:
filename - save to this file path

save

public void save(java.lang.string filename,
                 com.spire.ms.system.drawing.imaging.imageformat format)
save barcodeimage to specific file in specific format
parameters:
filename - save to this file path
format - system.drawing.imaging.imageformat

save

public void save(java.lang.string filename,
                  format)
save barcodeimage to specific file in specific format
parameters:
filename - save to this file path
format - specifies the file format of the image.

tostring

public java.lang.string tostring()
overried to string method
overrides:
tostring in class java.lang.object
returns:
barcode: symbologytype: codetext

getcodecaptionlogoimage

public  getcodecaptionlogoimage()

setcodecaptionlogoimage

public void setcodecaptionlogoimage( _logocodecaption)


网站地图