c#,读取二维码
2021-04-13 08:27
标签:ons ring 字符串 option c# summary char har name /// c#,读取二维码 标签:ons ring 字符串 option c# summary char har name 原文地址:https://www.cnblogs.com/qqhfeng/p/8984498.html
/// 读取二维码
/// 读取失败,返回空字符串
///
/// 指定二维码图片位置
static string Read1(string filename)
{
BarcodeReader reader = new BarcodeReader();
reader.Options.CharacterSet = "UTF-8";
Bitmap map = new Bitmap(filename);
Result result = reader.Decode(map);
return result == null ? "" : result.Text;
}
上一篇:c#,条码
下一篇:Win7异常断电后不启动修复