public class DefaultQrCodeWriterQrCode extends Object implements QrCodeMatrixWriter
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
QUIET_ZONE_SIZE |
| 构造器和说明 |
|---|
DefaultQrCodeWriterQrCode() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected BitMatrixInfo |
buildOutputMatrixInfo(com.google.zxing.qrcode.encoder.QRCode qrCode,
int outputWidth,
int outputHeight,
int multiple,
int topPadding,
int leftPadding) |
BitMatrixInfo |
encode(String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height)
Encode a barcode using the default settings.
|
BitMatrixInfo |
encode(String contents,
com.google.zxing.BarcodeFormat format,
int width,
int height,
Map<com.google.zxing.EncodeHintType,?> hints) |
BitMatrixInfo |
renderResult(com.google.zxing.qrcode.encoder.QRCode code,
int width,
int height,
int quietZone) |
public static final int QUIET_ZONE_SIZE
public BitMatrixInfo encode(String contents, com.google.zxing.BarcodeFormat format, int width, int height) throws com.google.zxing.WriterException
QrCodeMatrixWriterencode 在接口中 QrCodeMatrixWritercontents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixelsBitMatrix representing encoded barcode imagecom.google.zxing.WriterException - if contents cannot be encoded legally in a formatpublic BitMatrixInfo encode(String contents, com.google.zxing.BarcodeFormat format, int width, int height, Map<com.google.zxing.EncodeHintType,?> hints) throws com.google.zxing.WriterException
encode 在接口中 QrCodeMatrixWritercontents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixelshints - Additional parameters to supply to the encoderBitMatrix representing encoded barcode imagecom.google.zxing.WriterException - if contents cannot be encoded legally in a formatpublic BitMatrixInfo renderResult(com.google.zxing.qrcode.encoder.QRCode code, int width, int height, int quietZone)
renderResult 在接口中 QrCodeMatrixWriterprotected BitMatrixInfo buildOutputMatrixInfo(com.google.zxing.qrcode.encoder.QRCode qrCode, int outputWidth, int outputHeight, int multiple, int topPadding, int leftPadding)
Copyright © 2017. All rights reserved.