Showing posts with label QR Codes. Show all posts
Showing posts with label QR Codes. Show all posts

Monday, April 25, 2011

Creating your own QR C# ASP.NET website generator...

Well there aren't a whole lot of examples of how to create your own...so I decided to post how to do it here.
For starters when I wanted to create my own QR Code generator in C# .NET I found sites like google that would do it all for you with the click of a link...but this didn't generate the image file. In some instances generating that image file is important since you may want to use it later on, for instance when customers are ordering business cards and they need to keep track of the QR Code image as well as what will be on the card.
So here is a nice library I found that is open source.
http://twit88.com/platform/projects/show/mt-qrcode
It is very simple to use and requires minor setting up. After creating an object of the QR Code library you just set a few values:

MessagingToolkit.QRCode.Codec.QRCodeEncoder QREncoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();
QREncoder.QRCodeEncodeMode = MessagingToolkit.QRCode.Codec.QRCodeEncoder.ENCODE_MODE.BYTE;
QREncoder.QRCodeErrorCorrect = MessagingToolkit.QRCode.Codec.QRCodeEncoder.ERROR_CORRECTION.H;
QRCodeBitmap = QREncoder.Encode("http://xelot.blogspot.com");

QRCodeBitmap will now hold the bitmap you want to store to your HDD...with a simple saving...

System.IO.FileStream fs = new System.IO.FileStream("/QRCode.bmp",System.IO.FileMode.Create);
QRCodeBitmap.Save(fs, System.Drawing.Imaging.ImageFormat.Bmp);
fs.Close();

I hope this can help anyone to create their own C# ASP.NET website QR Code Generator.

Thursday, April 14, 2011

QR Codes

    I recently came across a few clients wanting to use QR Codes in their ideas. I decided to do a little bit of research to get an idea of what they were...To simplify they are basically a complex bar code which can store things such as URL, or messages...and with your very own cell phone and a QR Code decoder you can then use that to decrypt the message or have it automatically send you to the URL the code has encoded.
    When thinking about how I may be able to use this in a real life business opportunity...I came to the conclusion that they are mostly only good in a niche market...for marketing a particular product(since naturally someone is gonna want to scan your QR Code if they run into it when walking at the mall), and providing discounts to customers that have a QR Code decoder(this could be fun). In these two ideas, I believe lies the best interest of a QR Code enthusiast...but as you'll notice its a niche market since it has such a small use and the amount of people that will be scanning the codes will be few unless more and more people become involved with using them.

Text Message


Website URL