• 大小: 0.22M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: 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 com.google.zxing;
using System.IO;
using System.Drawing.Imaging;
using System.Net;
using System.Text.Regularexpressions;

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

        private void button1_Click(object sender EventArgs e)
        {
            string data = textBox1.Text;// “ http://120.4.153.98:8000/Default.aspx“;
            pictureBox1.Image = G.toBitmap(data);
            G.writeToFile(data ImageFormat.Bmp “123.bmp“);
            Image img = picture

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-23 13:51  WindowsFormsApplication1\
     目录           0  2019-04-04 21:47  WindowsFormsApplication1\WindowsFormsApplication1\
     文件        3923  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
     文件        2111  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
     文件        5817  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
     文件        3111  2019-04-04 22:08  WindowsFormsApplication1\WindowsFormsApplication1\G.cs
     文件         505  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
     目录           0  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\
     文件        1380  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2900  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
     文件        3890  2019-04-04 22:40  WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     目录           0  2019-04-04 21:47  WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2019-04-06 14:51  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件      160054  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\123.bmp
     文件       11264  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       30208  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       11600  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2013-03-05 08:06  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     文件      217088  2019-03-23 13:49  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\zxing.dll
     目录           0  2019-04-06 14:56  WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\
     目录           0  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\obj\
     目录           0  2019-03-23 13:51  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\
     目录           0  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\
     文件        5420  2019-04-06 14:51  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6675  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2019-04-06 14:56  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE\
     文件         180  2019-04-06 14:55  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
     文件         180  2019-04-04 22:40  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
............此处省略8个文件信息

评论

共有 条评论