c sharp QR CODE IMAGE

using  Csharp you can Generate  a QR Code image for your url or  text  you may use it  to store your contact information  in QR images.




















the following QR image is generated using above app  if you have a QR image Reader you   Scan the following image


Source Code :     Download Reference File  Messingtoolkit.qrcode.dll

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ThoughtWorks.QRCode.Codec;
using ThoughtWorks.QRCode.Codec.Data;
using ThoughtWorks.QRCode.Codec.Util;
using System.Drawing.Imaging;
using System.IO;
namespace QR_Code_Final
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

       

        private void encode_Click(object sender, EventArgs e)
        {
            QRCodeEncoder qrCodeEncoder = new QRCodeEncoder();
            Image image;
            String data = textBox1.Text;
            image = qrCodeEncoder.Encode(data);
            pictureBox1.Image = image;
        }

        private void Save_Click(object sender, EventArgs e)
        {
           SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.Filter = "JPEG (*.JPEG)|*.JPEG|All files (*.*)|*.*";
            saveFileDialog1.FilterIndex = 1;
            saveFileDialog1.RestoreDirectory = true;

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                pictureBox1.Image.Save(saveFileDialog1.FileName, ImageFormat.Jpeg);
            
            }
          
        }



        public DialogResult Syst { get; set; }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

     
        }
    }


No comments:

Post a Comment

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...