Skip to content

qrcoder is getting too crowdy when adding a url #269

Answered by codebude
krishna007-cloud asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @krish7129 ,

I guess with "too crowdy" you mean too much "black and white boxes", correct? Those boxes represent data. Too reduce the amount of boxes for the same amount of input data (=your url), you can reduce the amount of error correction data that is saved inside the QR code.

QRCodeGenerator qrGenerator = new QRCodeGenerator();
string myUrl = "The payload aka the text which should be encoded.";
QRCodeData qrCodeData = qrGenerator.CreateQrCode(myUrl, QRCodeGenerator.ECCLevel.L);

By use of ECC Level => L less error correction data is coded into the QR code, which leads to less qr modules (=the black and white blocks). You can read more about the parameters here: https://github.com/c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by codebude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants