(zxing.net)解码

    //图片路径
    string imgPath = @"D:arcode.png";

    //解码通用类
    IBarcodeReader reader = new BarcodeReader();
    Bitmap bmp = new Bitmap(imgPath);
    Result result = reader.Decode(bmp);
    bmp.Dispose();
    if (result != null)
    {
        string text = result.Text; //条码内容
        string foramt = result.BarcodeFormat.ToString(); //条码类型
    }
原文地址:https://www.cnblogs.com/weiweixiang/p/10102593.html