Skip to content

MultiLine QrCode #293

Answered by codebude
Vcarreon439 asked this question in Q&A
May 15, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Just add a linebreak (\n) into the payload string:

string payload = "first line\nsecond Line";
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(payload, QRCodeGenerator.ECCLevel.Q);
QRCode qrCode = new QRCode(qrCodeData);
Bitmap qrCodeImage = qrCode.GetGraphic(20);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lebosstutorials
Comment options

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