构造器和说明 |
---|
MultiFormatWriter() |
限定符和类型 | 方法和说明 |
---|---|
BitMatrix |
encode(String contents,
BarcodeFormat format,
int width,
int height)
Encode a barcode using the default settings.
|
BitMatrix |
encode(String contents,
BarcodeFormat format,
int width,
int height,
Map<EncodeHintType,?> hints) |
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height) throws WriterException
Writer
encode
在接口中 Writer
contents
- The contents to encode in the barcodeformat
- The barcode format to generatewidth
- The preferred width in pixelsheight
- The preferred height in pixelsWriterException
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints) throws WriterException
encode
在接口中 Writer
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 encoderWriterException
Copyright © 2007–2014. All rights reserved.