Android Question QRGenerator: setting to have big code

peacemaker

Expert
Licensed User
Longtime User
HI, All

Help, please, to understand what should be updated in the class to have the QR-code maximally big squares, 21x21 matrix, for low-resolution printing.

4H code is of smaller blocks, but most online-generators give a low-resolution codes - bigger blocks - it's better for printing the tiny code by the low-resolution equipment.
What parameter is to be setup ?
 

Attachments

  • TempDownload.png
    TempDownload.png
    4.7 KB · Views: 79
  • TempDownload.png
    TempDownload.png
    9 KB · Views: 86
Last edited:

peacemaker

Expert
Licensed User
Longtime User
What is your data length?
My id text (to be encoded) is just 4 ru letters and 4 digits. "XXXX0000" ... "XXXX9999". Above i have attached 2 QR-codes, i see that second is text as HTML from some online-generator, but Erel, your class encode 8 letters by the same "high density" variant.
But i need to get "low density", left QR-code picture in my post.

Erel, i have tried manually to set in the class:
B4X:
vd = versions(0)
...
vd = versions(1)
...
vd = versions(2)
...
vd = versions(3)
...
But no "low density" picture result.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Indeed the data length is the root, non-ASCII symbols need more bytes to be encoded, so higher code density.

Minimal QR-code of 21 matrix is OK from online generators, if text is "QQQQ5555", but it's bigger if text is "ЙЙЙЙ5555" (4 non-ASCII symbols).

But the code class does not make 21 matrix anyway :(
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
B4X:
CreateVersionData (Version As Int, Name As String, Generator() As Int, Format() As Byte, MaxSize As Int, MaxUsableSize As Int, Alignments() As Int, _
        Group1Size As Int, Group2Size As Int, Block1Size As Int, Block2Size As Int, VersionInformation() As Byte) As QRVersionData

How to setup "1H" variant ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Thanks, Erel ! But what is the 1H capacity ? Maybe 1Q ?
 
Upvote 0
Top