Fit height is width of Qr Coder using MessagingToolKit.QRCode C #

4

Is there any way to adjust height is width? I thank you

        public void GerarQrCode(string NomeImagem,string Data)
        {
            QRCodeEncoder encoder = new QRCodeEncoder();
            Bitmap img = encoder.Encode("www.teste.com.br");
            var path = Server.MapPath("~/Content/images/");
            img.Save(path + NomeImagem + ".jpg", ImageFormat.Jpeg);
        }
    
asked by anonymous 18.05.2016 / 18:34

1 answer

2

You can try changing the scale of% generated%.

encoder.QRCodeScale = 1;

Remembering that "1" refers to the scale, in pixels, of the generated code.

Reference: How to re-size QRCode without losing resolution?

Tutorials:

18.05.2016 / 18:47