public final class BarCodeGenerator
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, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost ... 2D: Aztec, DataMatrix, PDf417, QR code ...
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.setCodeText("123ABC"); generator.save("code128.png");
Constructor and Description |
---|
BarCodeGenerator(BaseEncodeType type)
Initializes a new instance of the
BarCodeGenerator class with default codetext. |
BarCodeGenerator(BaseEncodeType type,
java.lang.String codeText)
Initializes a new instance of the
BarCodeGenerator class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clean up any resources being used.
|
android.graphics.Bitmap |
generateBarCodeImage()
Generate the BarCode image under current settings.
|
CustomerInformationInterpretingType |
getAustralianPostEncodingTable()
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
|
AutoSizeMode |
getAutoSizeMode()
Gets the mode by which the barcode automatically resizes.
|
AztecProperties |
getAztec()
Gets the
AztecProperties that contains all configuration properties for Aztec barcode. |
int |
getBackColor()
Background color of the barcode image.
|
Unit |
getBarCodeHeight()
BarCode height when
AutoSizeMode property is set to AutoSizeMode.NEAREST. |
Unit |
getBarCodeWidth()
BarCode width when
AutoSizeMode property is set to AutoSizeMode.Nearest. |
Unit |
getBarHeight()
Height of 1D barcodes' bars in
Unit value. |
BorderProperties |
getBorder()
Gets the
BorderProperties that contains all configuration properties for barcode border. |
Caption |
getCaptionAbove()
Caption Above the BarCode image.
|
Caption |
getCaptionBelow()
Caption Below the BarCode image.
|
ChecksumProperties |
getChecksum()
Gets the
ChecksumProperties that contains all configuration properties for checksum of barcode. |
CodabarProperties |
getCodabar()
Gets the CodabarProperties that contains all configuration properties for Codabar barcode.
|
java.lang.String |
getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
CodeTextStyle |
getCodeTextStyle()
Gets the
CodeTextStyle that contains all configuration properties for codetext of barcode. |
D2Properties |
getD2()
Gets the
D2Properties that contains all configuration properties for 2D barcodes. |
DataMatrixProperties |
getDataMatrix()
Gets the
DataMatrixProperties that contains all configuration properties for DataMatrix barcode. |
int |
getDotCodeMask()
Gets mask of Dotcode barcode, default to Auto.
|
boolean |
getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
|
BaseEncodeType |
getEncodeType()
BarCode's encode type (symbology).
|
boolean |
getFilledBars()
Gets or sets a value indicating whether bars filled.
|
int |
getForeColor()
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
|
ITFProperties |
getITF()
Gets the
ITFProperties that contains all configuration properties for ITF14 barcode. |
Margins |
getMargins()
Margin area around the core BarCode image.
|
int |
getMaxiCodeEncodeMode()
Gets a MaxiCode encode mode.
|
Pdf417Properties |
getPdf417()
Gets the
Pdf417Properties that contains all configuration properties for Pdf417 barcode. |
Unit |
getPostalShortBarHeight()
Short bar's height of Postal barcodes.
|
QRProperties |
getQR()
Gets the
QRProperties that contains all configuration properties for QR barcode. |
float |
getResolution()
Gets or sets the resolution of the BarCode image.
|
float |
getRotationAngle()
BarCode image rotation angle, measured in degree, e.g.
|
SupplementProperties |
getSupplement()
Gets the
SupplementProperties that contains all configuration properties for Supplement part of barcode. |
boolean |
getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes.
|
float |
getWideNarrowRatio()
Wide bars to Narrow bars ratio for some 1D BarCode.
|
Unit |
getXDimension()
x-dimension is the smallest width of the unit of BarCode bars or spaces.
|
boolean |
isDesignMode() |
static boolean |
isLicensed()
Gets a value indicating whether generation module is licensed.
|
void |
recalculateValues()
Calculate all values automatically without drawing barcode.
|
void |
save(java.io.OutputStream stream,
BarCodeImageFormat format)
Save BarCodeImage to stream in specific format.
|
void |
save(java.io.OutputStream stream,
int format)
Deprecated.
|
void |
save(java.lang.String filename)
Save BarCodeImage to specific file in specific format.
|
void |
save(java.lang.String filename,
BarCodeImageFormat format)
Save BarCodeImage to specific file in specific format.
|
void |
save(java.lang.String filename,
int format)
Deprecated.
|
void |
setAustralianPostEncodingTable(CustomerInformationInterpretingType value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
|
void |
setAustralianPostEncodingTable(int value)
Deprecated.
|
void |
setAutoSizeMode(AutoSizeMode value)
Gets the mode by which the barcode automatically resizes.
|
void |
setAutoSizeMode(int value)
Deprecated.
|
void |
setBackColor(int value)
Background color of the barcode image.
|
void |
setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
|
void |
setDotCodeMask(int value)
Sets mask of Dotcode barcode, default to Auto.
|
void |
setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setFilledBars(boolean value)
Gets or sets a value indicating whether bars filled.
|
void |
setForeColor(int value)
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
|
void |
setMaxiCodeEncodeMode(int value)
Sets a MaxiCode encode mode.
|
void |
setResolution(float value)
Gets or sets the resolution of the BarCode image.
|
void |
setRotationAngle(float value)
BarCode image rotation angle, measured in degree, e.g.
|
void |
setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes.
|
void |
setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio for some 1D BarCode.
|
boolean |
verifyState(int state,
java.lang.String[] watermark)
Verifies the state and returns product watermark
|
public BarCodeGenerator(BaseEncodeType type)
Initializes a new instance of the BarCodeGenerator
class with default codetext.
type
- BarCode's type. Use EncodeTypes
class to setup a symbology.public BarCodeGenerator(BaseEncodeType type, java.lang.String codeText)
Initializes a new instance of the BarCodeGenerator
class.
type
- BarCode's type. Use EncodeTypes
class to setup a symbology.codeText
- string text data to be encodedpublic static boolean isLicensed()
Gets a value indicating whether generation module is licensed.
Value:true
if generation module is licensed; otherwise, false
.public java.lang.String getCodeText()
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
See CodeTextStyle
.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.setCodeText("123ABC"); generator.save("test.png");
public void setCodeText(java.lang.String value)
Data to be encoded, different types of BarCode may have different CodeText length restrictions.
See CodeTextStyle
.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.setCodeText("123ABC"); generator.save("test.png");
public BaseEncodeType getEncodeType()
BarCode's encode type (symbology).
Use Aspose.BarCode.Generation.EncodeTypes
to get current symbology.
This sample shows how to user EncodeTypes.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); System.out.println(generator.getEncodeType());
public Caption getCaptionAbove()
Caption Above the BarCode image. See Caption
.
This sample shows how to set above caption and save BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getCaptionAbove().setVisible(true); generator.getCaptionAbove().setText("Caption above"); generator.getCaptionAbove().setAlignment(StringAlignment.CENTER); generator.getCaptionAbove().setColor(Color.RED); generator.getCaptionAbove().getFont().getSize().setPoint(14); //space between the barcode and the caption generator.getCaptionAbove().getSpace().setMillimeters(5); generator.save("test.png");
public Caption getCaptionBelow()
Caption Below the BarCode image. See Caption
.
This sample shows how to set below caption and save BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getCaptionBelow().setVisible(true); generator.getCaptionBelow().setText("Caption above"); generator.getCaptionBelow().setAlignment(StringAlignment.CENTER); generator.getCaptionBelow().setColor(Color.RED); generator.getCaptionBelow().getFont().getSize().setPoint(14); //space between the barcode and the caption generator.getCaptionBelow().getSpace().setMillimeters(5); generator.save("test.png");
public int getForeColor()
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
See Color
.
public void setForeColor(int value)
Foreground color of the barcode image, that is,
Bar's color of 1D barcode, Module's color of 2D barcode.
See Color
.
public int getBackColor()
Background color of the barcode image.
See Color
.
public void setBackColor(int value)
Background color of the barcode image.
See Color
.
public boolean getFilledBars()
Gets or sets a value indicating whether bars filled. Only for 1D barcodes. Default value is true.
Value:true
if bars filled; otherwise, false
.public void setFilledBars(boolean value)
Gets or sets a value indicating whether bars filled. Only for 1D barcodes. Default value is true.
Value:true
if bars filled; otherwise, false
.public Unit getBarHeight()
Height of 1D barcodes' bars in Unit
value.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getBarHeight().setMillimeters(10); generator.save("test.png");
public Unit getXDimension()
x-dimension is the smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getXDimension().setPixels(4f); generator.save("test.png");
public float getWideNarrowRatio()
Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio is 3, that is, wide bars are 3 times as wide as narrow bars. Applicable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
BarCodeException
- The WideNarrowRatio parameter value is less than or equal to 0.public void setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio for some 1D BarCode. Default WideNarrowRatio is 3, that is, wide bars are 3 times as wide as narrow bars. Applicable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5, Pharmacode
BarCodeException
- The WideNarrowRatio parameter value is less than or equal to 0.public float getResolution()
Gets or sets the resolution of the BarCode image. One value for both dimensions.
BarCodeException
- The Resolution parameter value is less than or equal to 0.public void setResolution(float value)
Gets or sets the resolution of the BarCode image. One value for both dimensions.
BarCodeException
- The Resolution parameter value is less than or equal to 0.public Margins getMargins()
Margin area around the core BarCode image.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getMargins().getRight().setMillimeters(2); generator.getMargins().getTop().setPixels(15); generator.getMargins().getRight().setInches(0.3f); generator.getMargins().getBottom().setPoint(14); generator.save("test.png");
public D2Properties getD2()
Gets the D2Properties
that contains all configuration properties for 2D barcodes.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.getD2().setAspectRatio(1.5f); generator.save("test.png");
public ITFProperties getITF()
Gets the ITFProperties
that contains all configuration properties for ITF14 barcode.
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");
public QRProperties getQR()
Gets the QRProperties
that contains all configuration properties for QR barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR); generator.setCodeText("123ABC456DEF"); generator.getQR().setErrorLevel(QRErrorLevel.LEVEL_H); generator.save("test.png");
public DataMatrixProperties getDataMatrix()
Gets the DataMatrixProperties
that contains all configuration properties for DataMatrix barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.getDataMatrix().setEncodeMode(DataMatrixEncodeMode.FULL); generator.save("test.png"); Assert.assertEquals(DataMatrixEncodeMode.FULL, generator.getDataMatrix().getEncodeMode());
public AztecProperties getAztec()
Gets the AztecProperties
that contains all configuration properties for Aztec barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.AZTEC); generator.getAztec().setSymbolMode(AztecSymbolMode.COMPACT); generator.getAztec().setErrorLevel(50); generator.save("test.png");
public Pdf417Properties getPdf417()
Gets the Pdf417Properties
that contains all configuration properties for Pdf417 barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.PDF_417); generator.getPdf417().setErrorLevel(Pdf417ErrorLevel.LEVEL_1); generator.save("test.png");
public CodabarProperties getCodabar()
Gets the CodabarProperties that contains all configuration properties for Codabar barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODABAR); generator.setCodeText("123456789"); generator.getChecksum().setEnable(EnableChecksum.YES); generator.getCodabar().setChecksumMode(CodabarChecksumMode.MOD_10); generator.save("test.png");
public SupplementProperties getSupplement()
Gets the SupplementProperties
that contains all configuration properties for Supplement part of barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.EAN_13); generator.getSupplement().setData("12345"); generator.getSupplement().getSpace().setMillimeters(7); generator.save("test.png");
public BorderProperties getBorder()
Gets the BorderProperties
that contains all 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");
public ChecksumProperties getChecksum()
Gets the ChecksumProperties
that contains all configuration properties for checksum of barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128,"12345"); generator.getChecksum().setAlwaysShow(true); generator.save("test.png");
public float getRotationAngle()
BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setRotationAngle(7f); float rotationAngle = generator.getRotationAngle(); generator.save("test.png");
public void setRotationAngle(float value)
BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setRotationAngle(7f); generator.save("test.png");
public AutoSizeMode getAutoSizeMode()
Gets the mode by which the barcode automatically resizes. Default value is AutoSizeMode.NONE.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setAutoSizeMode(AutoSizeMode.NEAREST); generator.getBarCodeWidth().setMillimeters(50); generator.getBarCodeHeight().setInches(1.3f); generator.save("test.png");
public void setAutoSizeMode(AutoSizeMode value)
Gets the mode by which the barcode automatically resizes. Default value is AutoSizeMode.None.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setAutoSizeMode(AutoSizeMode.NONE); generator.getBarCodeWidth().setMillimeters(50); generator.getBarCodeHeight().setInches(1.3f); generator.save("test.png");
@Deprecated public void setAutoSizeMode(int value)
Sets the mode by which the barcode automatically resizes. Default value is AutoSizeMode.NONE.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setAutoSizeMode(AutoSizeMode.NEAREST); generator.getBarCodeWidth().setMillimeters(50); generator.getBarCodeHeight().setInches(1.3f); generator.save("test.png");
public Unit getBarCodeWidth()
BarCode width when AutoSizeMode
property is set to AutoSizeMode.Nearest.
ArgumentException
- The BarCodeWidth parameter value is less than or equal to 0.BarCodeException
- The BarCodeWidth can't be specified when AutoSizeMode is set to None.public Unit getBarCodeHeight()
BarCode height when AutoSizeMode
property is set to AutoSizeMode.NEAREST.
ArgumentException
- The BarCodeHeight parameter value is less than or equal to 0.BarCodeException
- The BarCodeHeight can't be specified when AutoSizeMode is set to None.public CodeTextStyle getCodeTextStyle()
Gets the CodeTextStyle
that contains all configuration properties for codetext of barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.getCodeTextStyle().setLocation(CodeLocation.Above); generator.getCodeTextStyle().setColor(Color.BLUE); generator.getCodeTextStyle().setAlignment(StringAlignment.FAR); generator.getCodeTextStyle().getFont().setStyle(FontStyle.ITALIC); generator.getCodeTextStyle().getFont().getSize().setPoint(18); generator.getCodeTextStyle().getSpace().setMillimeters(5); generator.save("test.png");
public boolean getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
public void setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
public CustomerInformationInterpretingType getAustralianPostEncodingTable()
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
public void setAustralianPostEncodingTable(CustomerInformationInterpretingType value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
@Deprecated public void setAustralianPostEncodingTable(int value)
Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER"
public boolean getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property. It is worked pdf417, DataMatrix, Code128 only
See CodeText
.
If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
public void setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property. It is worked pdf417, DataMatrix, Code128 only
See CodeText
.
If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
public Unit getPostalShortBarHeight()
Short bar's height of Postal barcodes.
ArgumentException
- The PostalShortBarHeight parameter value is
near 2 times smaller than BarHeight
or more than 88% of the height of BarHeight.BarCodeException
- The PostalShortBarHeight can't be specified when AutoSizeMode is set to Nearest.public int getDotCodeMask()
public void setDotCodeMask(int value)
public int getMaxiCodeEncodeMode()
public void setMaxiCodeEncodeMode(int value)
public void dispose()
Clean up any resources being used.
public void recalculateValues()
Calculate all values automatically without drawing barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128); generator.recalculateValues(); float width = generator.getBarCodeWidth().getPixels(); float height = generator.getBarCodeHeight().getPixels(); generator.save("test.png");
BarCodeException
- Specified size (BarCodeWidth
and BarCodeHeight
) are not allowed for Nearest mode,
for exaple it is impossible to generate such a small barcode.public android.graphics.Bitmap generateBarCodeImage()
Generate the BarCode image under current settings.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128, "12345678"); File outputFile = new File("test.png"); OutputStream os = new FileOutputStream(outputFile); Bitmap generatedBitmap = generator.generateBarCodeImage(); generatedBitmap.compress(Bitmap.CompressFormat.PNG, 100, os); os.flush(); os.close();
System.Drawing.Bitmap
.BarCodeException
- Specified size (BarCodeWidth
and BarCodeHeight
) are not allowed for Nearest mode,
for exaple it is impossible to generate such a small barcode.@Deprecated public void save(java.io.OutputStream stream, int format) throws java.io.IOException
Save BarCodeImage to stream in specific format.
java.io.IOException
public void save(java.io.OutputStream stream, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to stream in specific format.
java.io.IOException
public void save(java.lang.String filename, BarCodeImageFormat format) throws java.io.IOException
Save BarCodeImage to specific file in specific format.
filename
- Save to this file path.format
- Specifies the file format of the output image.BarCodeException
- Specified size (BarCodeWidth
and BarCodeHeight
) are not allowed for Nearest mode,
for exaple it is impossible to generate such a small barcode.java.io.IOException
@Deprecated public void save(java.lang.String filename, int format) throws java.io.IOException
Save BarCodeImage to specific file in specific format.
filename
- Save to this file path.format
- Specifies the file format of the output image.BarCodeException
- <p>Specified size ({@code BarCodeWidth} and {@code BarCodeHeight}) are not allowed for Nearest mode,
for exaple it is impossible to generate such a small barcode.</p>
java.io.IOException
public void save(java.lang.String filename) throws java.io.IOException
Save BarCodeImage to specific file in specific format.
filename
- Save to this file path.BarCodeException
- Specified size (BarCodeWidth
and BarCodeHeight
) are not allowed for Nearest mode,
for exaple it is impossible to generate such a small barcode.java.io.IOException
public boolean isDesignMode()
public boolean verifyState(int state, java.lang.String[] watermark)
Verifies the state and returns product watermark
state
- Represents possible license stateswatermark
- Returns the watermark to display<b>True</b>
if the actual License state coincides with the given state; <b>False</b>
otherwise.