public class BarCodes extends CodeGenerator
charset, decodeHint, encodeHint, errorCorrectionLevel, font, fontColor, format, height, imgButtonMargin, imgTopMargin, suffix, width, wordsButtonMargin, wordsTopMargin, WRITER| Constructor and Description |
|---|
BarCodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(String content,
String words,
OutputStream out)
生成条码到流
|
protected BufferedImage |
getBufferedImage(String content)
获取 BufferedImage
|
protected BufferedImage |
setMargin(BufferedImage image)
设置边距
|
charset, decode, decode, decode, decode, decode, decodeBase64, decodeHint, decodeHint, encode, encode, encode, encodeBase64, encodeBase64, encodeHint, encodeHint, errorCorrectionLevel, font, font, font, font, fontColor, fontColor, format, getCharset, getDecodeHint, getEncodeHint, getErrorCorrectionLevel, getFont, getFontColor, getFormat, getHeight, getImgButtonMargin, getImgTopMargin, getSuffix, getWidth, getWordsButtonMargin, getWordsTopMargin, height, imgButtonMargin, imgMargin, imgTopMargin, insertWords, size, suffix, toErrorCorrectionLevel, width, wordsButtonMargin, wordsMargin, wordsTopMarginprotected BufferedImage getBufferedImage(String content)
CodeGeneratorgetBufferedImage in class CodeGeneratorcontent - 条形码内容protected BufferedImage setMargin(BufferedImage image)
image - imagepublic void encode(String content, String words, OutputStream out)
CodeGeneratorencode in class CodeGeneratorcontent - 内容words - 文字out - outputStreamCopyright © 2025. All rights reserved.