當前位置:編程學習大全網 - 電腦編程 - 用C#有沒有辦法識別二維碼

用C#有沒有辦法識別二維碼

引用ThoughtWorks.QRCode.dll這份文件。

然後寫方法

使用ThoughtWorks。QRCode . Codec

使用ThoughtWorks。QRCode . Codec.Data

使用ThoughtWorks。QRCode . Codec.Util

QR code decoder decoder = new QR code decoder();

string decoded string = decoder . decode(new QRCodeBitmapImage(new Bitmap(Pb _ view。圖片)));//pb_view。圖像PictureBox控件

txtEncodeData。Text = decodedString//知道了

  • 上一篇:飛機航模制作方法
  • 下一篇:廈門學生兼職的最低工資是多少呢
  • copyright 2024編程學習大全網