With the following C# sample code, generating QR Code in C# looks so easy. Just a few lines of code in your .NET application, but render QR Code image perfectly and fast.
using System; using System.Drawing; using System.Drawing.Imaging; using PQScan.BarcodeCreator; namespace QRCodeGeneratorInCSharp { classProgram { staticvoid Main(string[] args) { //Create an instance of PQScan.BarcodeCreator.Barcode object. Barcode qrcode = new Barcode(); //Set barcode date to encode qrcode.Data = "pqScan123456789"; //Set barcode type qrcode.BarType = BarCodeType.QRCode; //Set barcode image width qrcode.Width = 300; //Set barcode image height qrcode.Height = 300; //Set qrcode error correction level qrcode.QRCodeECL = ErrorCorrectionLevelMode.L; //Set barcode image fore groud color qrcode.BarcodeColor = Color.Black; //Set barcode image back ground color qrcode.BackgroundColor = Color.White; //Set barcode image format qrcode.PictureFormat = ImageFormat.Bmp; //Save barcode image to file qrcode.CreateBarcode("qrcode-csharp.bmp"); } } }