public interface QrCodeMatrixWriter
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
BitMatrixInfo encode(String contents, com.google.zxing.BarcodeFormat format, int width, int height) throws com.google.zxing.WriterException
contents - 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 formatBitMatrixInfo encode(String contents, com.google.zxing.BarcodeFormat format, int width, int height, Map<com.google.zxing.EncodeHintType,?> hints) throws com.google.zxing.WriterException
contents - 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 formatBitMatrixInfo renderResult(com.google.zxing.qrcode.encoder.QRCode code, int width, int height, int quietZone)
Copyright © 2017. All rights reserved.