Пример #1
0
        private void QRCode_Done_Click(object sender, EventArgs e)
        {
            try
            {
                Bitmap bp;
                label7.Text = "";
                if (!String.IsNullOrEmpty(QR_textBox_Memo.Text))
                {
                    //bp = QRCode.GetCode( QR_textBox_Memo.Text, QRCode.ENCODE_MODE.BYTE, QRCode.ERROR_CORRECTION.HIGH, 0, 4 );

                    bp = QRCode.GetCode(QR_textBox_Memo.Text, QRCode.ErrorCorrectionLevel.HIGH, QRCode.BarcodeFormat.QR_CODE, 300, 300);
                    QR_pictureBox_QRCode.Image = bp;
                }
            }
            catch (Exception ex)
            {
                label7.Text = ex.Message;
            }
        }