当前位置:编程学习 > C#/ASP.NET >>

C#zxing开发二维码怎么才能让手机UC浏览器读取

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using com.google.zxing.common;
using com.google.zxing;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {

                string te = this.textBox1.Text;
                MultiFormatWriter mutiWriter = new com.google.zxing.MultiFormatWriter();
                ByteMatrix bm = mutiWriter.encode(te, com.google.zxing.BarcodeFormat.QR_CODE, 200, 200);
                Bitmap img = bm.ToBitmap();
                pictureBox1.Image = img;

                //img.Save("C:\\Users\\Microsoft China\\Desktop\\12333.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
            }
            catch (Exception ee)
            { MessageBox.Show(ee.Message); }
        }


    }
}


可以生成二维码但是用手机UC浏览器读取不出来内容
--------------------编程问答-------------------- 谁知道你怎样读的? --------------------编程问答-------------------- 用安卓手机uc浏览器,进行二维码扫描读取
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,