This project is read-only.

qr-code image size

May 31, 2016 at 12:46 PM
Public Function GenerateQRCode(URL As String, DarkColor As System.Drawing.Color, LightColor As System.Drawing.Color) As Bitmap
    Dim Encoder As New Gma.QrCodeNet.Encoding.QrEncoder(Gma.QrCodeNet.Encoding.ErrorCorrectionLevel.M)
I am using following VB.NET code to generate QR-Code
        Dim Code As Gma.QrCodeNet.Encoding.QrCode = Encoder.Encode(URL)

        Dim TempBMP As New Bitmap(Code.Matrix.Width, Code.Matrix.Height)
        For X As Integer = 0 To Code.Matrix.Width - 1
            For Y As Integer = 0 To Code.Matrix.Height - 1
                If Code.Matrix.InternalArray(X, Y) Then TempBMP.SetPixel(X, Y, DarkColor) Else TempBMP.SetPixel(X, Y, LightColor)
        Return TempBMP
    End Function
And then to make a call
   Dim obj As New QRGenerator()
        Dim img = obj.GenerateQRCode("", Drawing.Color.Black, Drawing.Color.Aqua)
It generate the image as which is very small in size:

How I can generate image with bigger size?