• 识别图片上的文字

    识别图片上的文字.打开图片开始识别图片上的文字和数字。

    0
    114
    29KB
    2015-09-16
    10
  • exceltonotepad

    excel的数据读取并获取的内容写在txt文本。

    0
    139
    44KB
    2015-04-19
    50
  • c#实现 文件夹导入和删除

    string newstrpath = Application.StartupPath + "\\" + textBox3.Text + textBox1.Text; if (!Directory.Exists(newstrpath)) { System.IO.Directory.CreateDirectory(newstrpath); string oldstrpath = ""; //====================================== FolderBrowserDialog folderdlg = new FolderBrowserDialog(); if (folderdlg.ShowDialog() == DialogResult.OK) oldstrpath = folderdlg.SelectedPath; string srcdir, destdir; bool recursive; recursive = true; if (oldstrpath != "") { srcdir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), oldstrpath); destdir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), newstrpath); FileCopy(srcdir, destdir, recursive); MessageBox.Show("导入完成", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("你还没选择导入的文件", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } else { DialogResult dr= MessageBox.Show("这位学生的论文已存在,如果需要改变,先删除!要删除吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { DeleteFolder(newstrpath); MessageBox.Show("删除成功了", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }

    0
    140
    19KB
    2010-05-19
    20
  • c# 制作和实现波形

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace huiji { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private List<byte> 数据采样 = new List<byte>(); private int 网格偏移 = 0; private Random 随机数 = new Random(); private const int 网格大小 = 12; private Pen 网格颜色 = new Pen(Color.FromArgb(0x00, 0x80, 0x40)); private Pen 曲线颜色 = new Pen(Color.FromArgb(0x00, 0xFF, 0x00)); private void Form1_Load(object sender, EventArgs e) { DoubleBuffered = true; timer1.Enabled = true; timer1.Interval = 10; } private void timer1_Tick(object sender, EventArgs e) { while (数据采样.Count > 1000) 数据采样.RemoveAt(0); 数据采样.Add((byte)随机数.Next(256)); 网格偏移 = (网格偏移 + 1) % 网格大小; Invalidate(); } private void Form1_Paint(object sender, PaintEventArgs e) { e.Graphics.FillRectangle(Brushes.Black, e.Graphics.ClipBounds); #region 绘制网格 for (int i = ClientSize.Width - 网格偏移; i >= 0; i -= 网格大小) e.Graphics.DrawLine(网格颜色, i, 0, i, ClientSize.Height); for (int i = ClientSize.Height; i >= 0; i -= 网格大小) e.Graphics.DrawLine(网格颜色, 0, i, ClientSize.Width, i); #endregion #region 绘制曲线 if (数据采样.Count <= 1) return; // 一个数据就不绘制了 byte A = 数据采样[数据采样.Count - 1]; for (int i = 数据采样.Count - 2; i >= 0; i--) { byte B = 数据采样[i]; e.Graphics.DrawLine(曲线颜色, new Point(ClientSize.Width - 数据采样.Count + i - 1, (int)(((double)A / 255) * ClientSize.Height)), new Point(ClientSize.Width - 数据采样.Count + i, (int)(((double)B / 255) * ClientSize.Height))); A = B; } #endregion } private void Form1_Resize(object sender, EventArgs e) { Invalidate(); } } }

    5
    125
    31KB
    2010-05-14
    10
  • C#调用Offce里面的精灵

    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 AgentObjects; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private IAgentCtlCharacterEx Character; public Form1() { InitializeComponent(); button2.Enabled = false;//先使下面的两个按钮无效 button3.Enabled = false; } private void button1_Click(object sender, EventArgs e) { if (this.comboBox1.Text.Length == 0) { MessageBox.Show("请先选择一个精灵!", "错误信息"); return; } switch (this.comboBox1.Text) { case "吉尼(Genie)": axAgent1.Characters.Load("Genie",(object)"GENIE.ACS");//导入精灵吉尼 Character = axAgent1.Characters["Genie"]; Character.LanguageID = 0x409;//把语言设置为英语,这里不能是中文 Character.Show(null);//显示精灵 break; case "么林(Merlin)": axAgent1.Characters.Load("Merlin",(object)"MERLIN.ACS");//导入精灵么林 Character = axAgent1.Characters["Merlin"]; Character.LanguageID = 0x409;//把语言设置为英语,这里不能是中文 Character.Show(null);//显示精灵 break; case "罗比(Robby)": axAgent1.Characters.Load("Robby",(object)"ROBBY.ACS");//导入精灵罗比 Character = axAgent1.Characters["Robby"]; Character.LanguageID = 0x409;//把语言设置为英语,这里不能是中文 Character.Show(null);//显示精灵 break; case "皮蒂(Peedy)": axAgent1.Characters.Load("Peedy",(object)"PEEDY.ACS");//导入精灵皮蒂 Character = axAgent1.Characters["Peedy"]; Character.LanguageID = 0x409;//把语言设置为英语,这里不能是中文 Character.Show(null);//显示精灵 break; } button1.Enabled = false;//重新设置按钮的有效性 button2.Enabled = true; button3.Enabled = true; } private void button2_Click(object sender, EventArgs e) { Character.Play("Wave"); Character.Play("Hide");//隐藏精灵 switch (this.comboBox1.Text) { case "吉尼(Genie)": axAgent1.Characters.Unload("Genie"); break; case "么林(Merlin)": axAgent1.Characters.Unload("Merlin"); break; case "罗比(Robby)": axAgent1.Characters.Unload("Robby"); break; case "皮蒂(Peedy)": axAgent1.Characters.Unload("Peedy"); break; } button1.Enabled = true; button2.Enabled = false;//使下面的两个按钮无效 button3.Enabled = false; } private void button3_Click(object sender, EventArgs e) { if (textBox1.Text.Length == 0) //如果没有字符的话,就不读 return; Character.Speak(textBox1.Text,null);//让精灵朗读文本 } } }

    5
    81
    78KB
    2010-05-14
    13
关注 私信
上传资源赚积分or赚钱