哪位大神能帮我翻译一下这句话,最好详细一些

[复制链接]
查看11 | 回复2 | 2021-1-27 06:46:06 | 显示全部楼层 |阅读模式
Hashtablehints=newHashtable();
hints.put(EncodeHintType.CHARACTER_SET,"utf-8");
BitMatrixbm=newMultiFormatWriter().encode(website,BarcodeFormat.QR_CODE,width,height,hints);
BufferedImageimage=toImage(bm);
ImageIO.write(image,format,output);
分 -->
回复

使用道具 举报

千问 | 2021-1-27 06:46:06 | 显示全部楼层
Hashtablehints=newHashtable();创建一个table
hints.put(EncodeHintType.CHARACTER_SET,"utf-8");设置编码
BitMatrixbm=newMultiFormatWriter().encode(website,BarcodeFormat.QR_CODE,width,height,hints);生成一个table
BufferedImageimage=toImage(bm);转换成图片
ImageIO.write(image,format,output);输出这个图片
回复

使用道具 举报

千问 | 2021-1-27 06:46:06 | 显示全部楼层
引用1楼m0_38083682的回复:Hashtablehints=newHashtable();创建一个table
hints.put(EncodeHintType.CHARACTER_SET,"utf-8");设置编码
BitMatrixbm=newMultiFormatWriter().encode(website,BarcodeFormat.QR_CODE,width,height,hints);生成一个table
BufferedImageimage=toImage(bm);转换成图片
ImageIO.write(image,format,output);输出这个图片

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行