如何自动生成带“潜台词”的二维码

发布于 2024-12-29 07:35:38 字数 166 浏览 1 评论 0原文

我想自动生成二维码,在其下方显示二维码的内容(交易ID)。那么最终产品应该是一张图片(最好是 png),其中包含代码+文本。

我一直在寻找具有该功能的库,但到目前为止还没有成功。

有什么提示吗?谢谢!

PS:目前正在使用Java(zxing)工作,但一切实用的都可以!

I want to automatically generate QR codes that display the content of the QR code (a transaction ID) beneath it. Then end product should be a pic (ideally png) with code + text in it.

I have been looking for libs with that capability, but so far was not successful.

Any hints? Thanks!

PS: currently working in Java (zxing), but everything that's practical will do!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浴红衣 2025-01-05 07:35:38

也不知道直接解决方案的库,但将您的两个要求(1.生成二维码图像,2.在下面放置一些文本)结合到一个程序中应该不难。

我想您已经知道如何生成和获取二维码图像了。对于第二步,操作图像,以下SO问题有有用的答案:

Also don't know a library for a direct solution, but it shouldn't be hard to combine your two requirements (1. generate QR Code image, 2. put some text beneath) in a single program.

I guess you already know how to generate and get your QR Code image. For the second step, manipulating the image, the following SO-questions have useful answers:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文