需要在QR码中存储100 x 100的图像 [英] Need to store image of 100 x 100 in QR code

查看:83
本文介绍了需要在QR码中存储100 x 100的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要做一个小程序,可以在qr中保存100 x 100的图像,我要做的是将图像以像素格式保存在文本文件中,然后压缩该文本文件。它会减小尺寸。接下来我试图将该文件拆分为3KB大小的块。我已经做到这一点。



我尝试过:



现在我想生成每个块的QR码。我正在尝试以字节为单位读取块(即文件)信息



i need to do small program which can save image of 100 x 100 in the qr, what i am trying to do is to save the image in pixel format in text file, then compress that text file. it will reduce the size. next i am trying to split that file in the chunks of size 3KB. i have already done till this point.

What I have tried:

now i want to generate the QR code of each chunk. i am trying to read the chunk (which is file) information in bytes

<pre lang="C#">byte[] fileBytes = System.IO.File.ReadAllBytes(chunkName);</pre>







我怎么能在QR中保存这个想法请帮忙。




how can i save this in QR any idea please help.

推荐答案

看看这个开源QR码库。您应该能够利用它将块编码为单独的QR码并将其导出为图像。

开源QRCode库
Take a look at this open source QR code library. You should be able to utilize it to encode the "chunks" into individual QR codes and export them as images.
Open Source QRCode Library


这篇关于需要在QR码中存储100 x 100的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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