資源簡介
本源碼包含2種生成方式
1、簡單二維碼:輸入信息生成二維碼
2、圖片二維碼:輸入信息、選擇圖片路徑生成含圖片的二維碼

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?二維碼
{
????public?partial?class?FrmMain?:?Form
????{
????????public?FrmMain()
????????{
????????????InitializeComponent();
????????}
????????private?void?tbtnSimpleQRCode_Click(object?sender?EventArgs?e)
????????{???//生成簡單二維碼
????????????pictureBoxQRCode.Image?=?GenerateSimpleQRCode.GetQRCode(textBoxQrCode.Text);
????????}
????????private?void?tbtnImageQRCode_Click(object?sender?EventArgs?e)
????????{???//生成含圖片二維碼
????????????var?dlg?=?new?OpenFileDialog();
????????????dlg.Filter?=?“圖片文件(*.jpg*.gif*.bmp)|*.jpg;*.gif;*.bmp“;
????????????if?(dlg.ShowDialog()?==?System.Windows.Forms.DialogResult.OK)
????????????????pictureBoxQRCode.Image?=?GenerateImageQRCode.GetQRCode(textBoxQrCode.Text?dlg.FileName);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-06-27?11:18??GRCode\
?????文件?????????187??2014-06-27?10:02??GRCode\App.config
?????文件????????6975??2014-06-27?11:23??GRCode\FrmMain.Designer.cs
?????文件????????1067??2014-06-27?11:31??GRCode\FrmMain.cs
?????文件????????8398??2014-06-27?11:23??GRCode\FrmMain.resx
?????文件????????4090??2014-06-27?11:22??GRCode\GRCode.csproj
?????文件????????3000??2014-06-27?11:34??GRCode\GenerateImageQRCode.cs
?????文件????????1936??2014-06-27?11:32??GRCode\GenerateSimpleQRCode.cs
?????文件?????????523??2014-06-27?10:38??GRCode\Program.cs
?????目錄???????????0??2014-06-27?11:07??GRCode\Properties\
?????文件????????1356??2014-06-27?10:02??GRCode\Properties\AssemblyInfo.cs
?????文件????????2870??2014-06-27?10:02??GRCode\Properties\Resources.Designer.cs
?????文件????????5612??2014-06-27?10:02??GRCode\Properties\Resources.resx
?????文件????????1096??2014-06-27?10:02??GRCode\Properties\Settings.Designer.cs
?????文件?????????249??2014-06-27?10:02??GRCode\Properties\Settings.settings
?????文件?????????266??2014-06-27?10:23??GRCode\Properties\licenses.licx
?????文件?????6205440??2010-12-04?14:18??GRCode\ThoughtWorks.QRCode.dll
?????目錄???????????0??2014-06-27?11:07??GRCode\bin\
?????目錄???????????0??2014-06-27?11:34??GRCode\bin\Debug\
?????文件?????6205440??2010-12-04?14:18??GRCode\bin\Debug\ThoughtWorks.QRCode.dll
?????文件???????14848??2014-06-27?11:34??GRCode\bin\Debug\二維碼.exe
?????文件?????????187??2014-06-27?10:02??GRCode\bin\Debug\二維碼.exe.config
?????文件???????26112??2014-06-27?11:34??GRCode\bin\Debug\二維碼.pdb
?????文件???????22984??2014-06-27?11:33??GRCode\bin\Debug\二維碼.vshost.exe
?????文件?????????187??2014-06-27?10:02??GRCode\bin\Debug\二維碼.vshost.exe.config
?????目錄???????????0??2014-06-27?11:35??GRCode\bin\Release\
?????目錄???????????0??2014-06-27?11:07??GRCode\obj\
?????目錄???????????0??2014-06-27?11:34??GRCode\obj\Debug\
?????文件???????20267??2014-06-27?10:05??GRCode\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7072??2014-06-27?11:22??GRCode\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????719??2014-06-27?11:34??GRCode\obj\Debug\GRCode.csproj.FileListAbsolute.txt
............此處省略12個文件信息
- 上一篇:濟南招聘網asp.net源碼
- 下一篇:谷歌瀏覽器chormec#
評論
共有 條評論