public enum EncodeHintType extends java.lang.Enum<EncodeHintType>
| 枚举常量和说明 |
|---|
AZTEC_LAYERS
Specifies the required number of layers for an Aztec code.
|
CHARACTER_SET
Specifies what character encoding to use where applicable (type
String) |
DATA_MATRIX_SHAPE
Specifies the matrix shape for Data Matrix (type
SymbolShapeHint) |
ERROR_CORRECTION
Specifies what degree of error correction to use, for example in QR Codes.
|
MARGIN
Specifies margin, in pixels, to use when generating the barcode.
|
MAX_SIZE
已过时。
without replacement
|
MIN_SIZE
已过时。
use width/height params in
DataMatrixWriter.encode(String, BarcodeFormat, int, int) |
PDF417_COMPACT
Specifies whether to use compact mode for PDF417 (type
Boolean, or "true" or "false"
String value). |
PDF417_COMPACTION
Specifies what compaction mode to use for PDF417 (type
Compaction or String value of one of its
enum values). |
PDF417_DIMENSIONS
Specifies the minimum and maximum number of rows and columns for PDF417 (type
Dimensions). |
QR_VERSION
Specifies the exact version of QR code to be encoded.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static EncodeHintType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static EncodeHintType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EncodeHintType ERROR_CORRECTION
ErrorCorrectionLevel.
For Aztec it is of type Integer, representing the minimal percentage of error correction words.
For PDF417 it is of type Integer, valid values being 0 to 8.
In all cases, it can also be a String representation of the desired value as well.
Note: an Aztec symbol should have a minimum of 25% EC words.public static final EncodeHintType CHARACTER_SET
String)public static final EncodeHintType DATA_MATRIX_SHAPE
SymbolShapeHint)@Deprecated public static final EncodeHintType MIN_SIZE
DataMatrixWriter.encode(String, BarcodeFormat, int, int)Dimension). Only applicable to Data Matrix now.@Deprecated public static final EncodeHintType MAX_SIZE
Dimension). Only applicable to Data Matrix now.public static final EncodeHintType MARGIN
Integer, or String representation of the integer value).public static final EncodeHintType PDF417_COMPACT
Boolean, or "true" or "false"
String value).public static final EncodeHintType PDF417_COMPACTION
Compaction or String value of one of its
enum values).public static final EncodeHintType PDF417_DIMENSIONS
Dimensions).public static final EncodeHintType AZTEC_LAYERS
Integer, or String representation of the integer value).public static final EncodeHintType QR_VERSION
Integer, or String representation of the integer value).public static EncodeHintType[] values()
for (EncodeHintType c : EncodeHintType.values()) System.out.println(c);
public static EncodeHintType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值