ahmed salah

ahmed salah

  • NA
  • 530
  • 148.7k

How to change color qr generating to another color of black

Mar 11 2017 12:46 PM
I working in visual studio 2015 windows form application
 
I generating qr using messagetoolkit library and it working good without any problem
 
I face only one problem i need to change color of qr to another color different to
 
black as blue or red or green like that
 
so that how to do color qr code using messagetoolkit
 
my code
  1. MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder();  
  2.                    encoder.QRCodeScale = 8;  
  3.                    Bitmap bmp = encoder.Encode(textBox1.Text);  
  4.                    pictureBox1.Image = bmp;  
  5.                    bmp.Save(sv.FileName, ImageFormat.Jpeg);  
 
 

Answers (13)