社区
下载资源悬赏专区
帖子详情
QR code专用jar包(zxing最新jar包)下载
weixin_39821260
2019-10-06 03:30:23
QR code专用jar包,亲测能用,自己手动打包,已加入签名(有效期到2028年)
相关下载链接:
//download.csdn.net/download/krls_shany/10690388?utm_source=bbsseo
...全文
26
回复
打赏
收藏
QR code专用jar包(zxing最新jar包)下载
QR code专用jar包,亲测能用,自己手动打包,已加入签名(有效期到2028年) 相关下载链接://download.csdn.net/download/krls_shany/10690388?utm_source=bbsseo
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
QR
code
专用
jar包
(
zxing
最新
jar包
)
QR
code
专用
jar包
,亲测能用,自己手动打包,已加入签名(有效期到2028年)
二维码生成相关
jar包
Java生成二维码相关
jar包
,包括
Zxing
2.2和
QR
CODE
的
jar包
zxing
.jar.
开发二维码使用的
jar包
版本较早 代码可参考如下: public static void en
code
String url String path String format int width int height { try { BitMatrix bitmatrix new MultiFormatWriter en
code
new String url getBytes "GBK" "ISO 8859 1" Bar
code
Format
QR
CODE
width height ; ByteMatrix byteMatrix new MultiFormatWriter en
code
url Bar
code
Format
QR
CODE
width height ; File file new File path ; if file getParentFile exists { file getParentFile mkdirs ; } MatrixToImageWriter writeToFile byteMatrix format file ; MatrixToImageWriter writeToStream bitmatrix format new FileOutputStream file ; } catch WriterException e { e printStackTrace ; } catch UnsupportedEncodingException e { e printStackTrace ; } catch IOException e { e printStackTrace ; } }">开发二维码使用的
jar包
版本较早 代码可参考如下: public static void en
code
String url String path String format int width int height { try { BitMatrix bitmatrix new MultiFormatWriter en
code
new String url getBytes "GBK" "ISO 8859 1" Bar
code
Fo [更多]
zxing
-javase.jar
zxing
-javase二维码生成
jar包
。java实现二维码的绘制和解析(
zxing
by google) 截止目前为止
最新
版本为1.7,提供以下编码格式的支持: UPC-A and UPC-E EAN-8 and EAN-13
Code
39
Code
93
Code
128
QR
Code
ITF Codabar RSS-14 (all variants) Data Matrix PDF 417 ('alpha' quality) Aztec ('alpha' quality) 同时官网提供了 Android、cpp、C#、iPhone、j2me、j2se、jruby、objc、rim、symbian等多种应用的类库,具体详情可以参考
下载
的源码包中。
二维码
zxing
3.3.3.
jar包
public static void main(String[] args) { //定义图片高度和宽度 int width = 300; int height =300; //定义图片格式 String format = "png"; //定义连接地址 String contents = "http://www.jd.com"; //定义二维码的参数 HashMap hints = new HashMap(); hints.put(En
code
HintType.CHARACTER_SET, "utf-8");//设置字符集 hints.put(En
code
HintType.ERROR_CORRECTION, ErrorCorrectionLevel.M);//设置纠错等级 hints.put(En
code
HintType.MARGIN, 2);//设置边距 //生成二维码 try { BitMatrix bitMatrix = new MultiFormatWriter().en
code
(contents, Bar
code
Format.
QR
_
CODE
, width, height); Path file = new File("D:/
code
/img.png").toPath(); MatrixToImageWriter.writeToPath(bitMatrix, format, file); } catch (Exception e) { e.printStackTrace(); } }
下载资源悬赏专区
12,798
社区成员
12,336,164
社区内容
发帖
与我相关
我的任务
下载资源悬赏专区
CSDN 下载资源悬赏专区
复制链接
扫一扫
分享
社区描述
CSDN 下载资源悬赏专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章