ahmed salah

ahmed salah

  • NA
  • 530
  • 148.7k

How to put image logo within generated qr code

Dec 19 2016 6:06 PM

I make windows application to generate c# qr code

I success to do that but i need to put image in center of generated bar code

But How to do that this is actually my question ?

I work in visual studio 2015 windows form applications

i using messagetoolkitqrcode

My code generated qr code by c# as following :

  1. private void button1_Click(object sender, EventArgs e)  
  2.         {  
  3.             using (SaveFileDialog sv = new SaveFileDialog() { Filter = "JPEG|*.jpg", ValidateNames = true })  
  4.             {  
  5.                 if (sv.ShowDialog()==DialogResult.OK)  
  6.                 {  
  7.                     MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();  
  8.                     encoder.QRCodeScale = 8;  
  9.                     Bitmap bmp = encoder.Encode(textBox1.Text);  
  10.                     pictureBox1.Image = bmp;  
  11.                     bmp.Save(sv.FileName, ImageFormat.Jpeg);  
  12.                 }  
  13.   
  14.             }  
  15.                   
  16.                       
  17.         }  

How to put logo inside my generated bare code as following image

my logo i need to put inside qr bar code is NASA logo when i generate it as following :

AND logo found in path

c/nasa.jpg


Answers (1)