是否有可能改变“点”形状由ZXing生成的QR code? [英] Is it possible to change the 'dot' shape in a QR Code generated by ZXing?

查看:160
本文介绍了是否有可能改变“点”形状由ZXing生成的QR code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我使用ZXing生成QR codeS。我在生成和读取codeS没有问题,并且可以更改配色方案没有任何问题。我在想,如果有可能产生codeS的形状由传统的正方形点或圆形使用ZXing改变?

Currently, I'm using ZXing to generate QR Codes. I have no problems in generating and reading the codes, and can change the colour scheme without any issues. I was wondering if it is possible to change the shape of the generated codes from the traditional squares to 'dots' or circles using ZXing?

我见过的这个图像和例子,但我还没有看到使用ZXing任何例子的解决方案。

I've seen images and examples of this, but I haven't seen any example solutions using ZXing.

寻找类似:

如果它是可以做到与ZXing?我想AP preciate任何例如code。

If it is possible to do with ZXing? I would appreciate any example code.

推荐答案

本库没有呈现QR code实际上,除有有点公用code的写出来作为图像在JavaSE的/模块。所以,我认为你会被大多是写自己的code或复制有点那个。它并不难。我不认为这是一个好主意,因为它伤害了可读性渲染这种方式,但可能仍大大工作。

The library doesn't render the QR code actually, excepting that there's a bit of utility code to write it out as an image in the javase/ module. So I think you would mostly be writing your own code or copying a bit of that. It's not hard. I don't think it's a great idea to render this way as it hurts readability, but probably still substantially works.

这篇关于是否有可能改变“点”形状由ZXing生成的QR code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆