private void button4_Click(object sender, EventArgs e) { QRCodeDecoder qrd = new QRCodeDecoder(); sbyte[] resultData = qrd.decodeBytes(new QRCodeBitmapImage(new Bitmap(this.pictureBox1.Image))); //label1.Text = qrd.decode(new QRCodeBitmapImage(new Bitmap(this.pictureBox1.Image)),Encoding.Unicode); byte[] myResultData = SbyteToByte(resultData); if (IsUnicode(myResultData)) { label1.Text = Encoding.Unicode.GetString(myResultData); } else { label1.Text = Encoding.ASCII.GetString(myResultData); } }