如何在C#中将图像转换为QR码? [英] How do I convert image into QR code in C# ?

查看:81
本文介绍了如何在C#中将图像转换为QR码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中将图像转换为QR码?



我尝试过:



我已将图像转换为base64字符串,然后尝试转换为QR码。但它因存储大小而失败?

how do i convert image into QR Code in c# ?

What I have tried:

I have converted image into base64 string then tried converting into QR Code. but it fails due to storage size ?

推荐答案

从这里开始: ZXing.Net - 主页 [ ^ ]


正如@Mehedi Gholam建议的那样,ZXing确实是一个很好的选择。

这也可能在列表中:开源QRCode库 [ ^ ]



这里描述了一些其他很好的选择:

免费c#QR码生成器 - 堆栈溢出 [ ^ ]
ZXing is a great option indeed as @Mehedi Gholam suggested.
This could be in the list too: Open Source QRCode Library[^]

A few other great alternative are described here:
Free c# QR-Code generator - Stack Overflow[^]


因存储空间大小而失败?

可能是的。我认为您应该将问题更改为QR码支持的字符串的最大长度是多少。



您可以参考维基百科 [ ^ ]。



fails due to storage size ?
Probably yes. I think you should change your question to "what is the max length of a string that a QR code supports".

You can refer to wikipedia[^].

Numeric only	7,089	3⅓	0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Alphanumeric	4,296	5½	0–9, A–Z (upper-case only), space,


这篇关于如何在C#中将图像转换为QR码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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