C#生成二维码(含解码)
生活随笔
收集整理的這篇文章主要介紹了
C#生成二维码(含解码)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;using System.Collections;
using com.google.zxing;//需要從網上下載
using System.Text.RegularExpressions;
using ByteMatrix = com.google.zxing.common.ByteMatrix;namespace 二維碼
{public partial class Form1 : Form{public Form1(){InitializeComponent();}//生成條形碼private void button1_Click(object sender, EventArgs e){Regex rg = new Regex("^[0-9]{13}$");if (!rg.IsMatch(textBox1.Text)){MessageBox.Show("本例子采用EAN_13編碼,需要輸入13位數字");return;}try{MultiFormatWriter mutiWriter = new com.google.zxing.MultiFormatWriter();ByteMatrix bm = muti
總結
以上是生活随笔為你收集整理的C#生成二维码(含解码)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ENVI IDL读写数据
- 下一篇: 地理术语