I am writing an application which is going to generate qr codes.
Most of the programming logic is implemented.
The next step in the process would be to generate the qr code image.
The most simple qr code is based on a 21×21 grid in which I have to make a tile (1×1) either black / white.
For more info: http://www.thonky.com/qr-code-tutorial/part-3-mask-pattern/
What would be the best approach for this.
I need to:
-
Show a preview of the code in the application
-
Give the user the option to save the qr code as an image (.jpg I think).
I.e. how to make an image which can be build like above and how to save it?
In order to create the QR code image, you will need to generate a bitmap in your application. Sample code to do this is:
In order to display the image to the end user you can use a PictureBox control:
And finally, in order to save the bitmap you can call the save function on it: