public final class QRProperties
extends java.lang.Object
Contains specific configuration properties for QR barcodes.
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");
Constructor and Description |
---|
QRProperties() |
Modifier and Type | Method and Description |
---|---|
int |
getECIEncoding()
Extended Channel Interpretation Identifiers.
|
QREncodeMode |
getEncodeMode()
QR symbology type of BarCode's encoding mode.
|
QREncodeType |
getEncodeType()
QR / MicroQR selector mode.
|
QRErrorLevel |
getErrorLevel()
Level of Reed-Solomon error correction for QR barcode.
|
QRVersion |
getVersion()
Version of QR Code.
|
void |
setECIEncoding(int value)
Extended Channel Interpretation Identifiers.
|
void |
setEncodeMode(int value)
Deprecated.
|
void |
setEncodeMode(QREncodeMode value)
QR symbology type of BarCode's encoding mode.
|
void |
setEncodeType(int value)
Deprecated.
|
void |
setEncodeType(QREncodeType value)
QR / MicroQR selector mode.
|
void |
setErrorLevel(int value)
Deprecated.
|
void |
setErrorLevel(QRErrorLevel value)
Level of Reed-Solomon error correction for QR barcode.
|
void |
setVersion(int value)
Deprecated.
|
void |
setVersion(QRVersion value)
Version of QR Code.
|
java.lang.String |
toString()
Returns a human-readable string representation of this QRProperties
|
public QREncodeMode getEncodeMode()
QR symbology type of BarCode's encoding mode.
DEFAULT mode is AUTO
.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR, "1234567890ABCDEF123"); generator.getQR().setEncodeMode(QREncodeMode.ECI_ENCODING); generator.getQR().setECIEncoding(ECIEncodings.Win1250); generator.save("test.png");
public void setEncodeMode(QREncodeMode value)
QR symbology type of BarCode's encoding mode.
DEFAULT mode is AUTO
.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR, "1234567890ABCDEF123"); generator.getQR().setEncodeMode(QREncodeMode.ECI_ENCODING); generator.getQR().setECIEncoding(ECIEncodings.Win1250); generator.save("test.png");
@Deprecated public void setEncodeMode(int value)
QR symbology type of BarCode's encoding mode.
DEFAULT mode is AUTO
.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR, "1234567890ABCDEF123"); generator.getQR().setEncodeMode(QREncodeMode.ECI_ENCODING); generator.getQR().setECIEncoding(ECIEncodings.Win1250); generator.save("test.png");
public QREncodeType getEncodeType()
QR / MicroQR selector mode. Select FORCE_QR for standard QR symbols, AUTO for MicroQR.
This sample shows how to encode MicroQR and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR); generator.setCodeText("12345TEXT"); generator.getQR().setEncodeType(QREncodeType.FORCE_MICRO_QR); generator.save("test.png");
public void setEncodeType(QREncodeType value)
QR / MicroQR selector mode. Select FORCE_QR for standard QR symbols, AUTO for MicroQR.
This sample shows how to encode MicroQR and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR); generator.setCodeText("12345TEXT"); generator.getQR().setEncodeType(QREncodeType.FORCE_MICRO_QR); generator.save("test.png");
@Deprecated public void setEncodeType(int value)
QR / MicroQR selector mode. Select FORCE_QR for standard QR symbols, AUTO for MicroQR.
This sample shows how to encode MicroQR and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.QR); generator.setCodeText("12345TEXT"); generator.getQR().setEncodeType(QREncodeType.FORCE_MICRO_QR); generator.save("test.png");
public QRErrorLevel getErrorLevel()
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
public void setErrorLevel(QRErrorLevel value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
@Deprecated public void setErrorLevel(int value)
Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see QRErrorLevel.
public QRVersion getVersion()
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. DEFAULT value is QRVersion.AUTO.
public void setVersion(QRVersion value)
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. DEFAULT value is QRVersion.AUTO.
@Deprecated public void setVersion(int value)
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. DEFAULT value is QRVersion.AUTO.
public int getECIEncoding()
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Currently, it is used only for QR 2D barcode.
public void setECIEncoding(int value)
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Currently, it is used only for QR 2D barcode.
public java.lang.String toString()
toString
in class java.lang.Object