csharp: winform using Microsoft.Ink(Tablet PC API) create Signature image
2023-09-11 14:19:13 时间
//Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack http://www.microsoft.com/zh-cn/download/details.aspx?id=1601
//Microsoft Windows XP Tablet PC Edition Software Development
/* //Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack http://www.microsoft.com/zh-cn/download/details.aspx?id=1601 //Microsoft Windows XP Tablet PC Edition Software Development Kit 1.7 http://www.microsoft.com/en-us/download/details.aspx?id=20039 * Microsoft Speech Platform - Software Development Kit (SDK) (Version 11) http://www.microsoft.com/en-us/download/details.aspx?id=27226 * Microsoft SDKs http://msdn.microsoft.com/en-us/dd299405.aspx *Microsoft.Ink 命名空间 http://msdn.microsoft.com/zh-cn/library/microsoft.ink%28v=vs.90%29.aspx * 安裝的文件在://Program Files\Microsoft Tablet PC Platform SDK\Include\Microsoft.Ink.dll * 在Windows XP sp3 環境下測試 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.IO; using Microsoft.Ink; //引用:Micosoft Tablet PC
inkOverlay = new InkOverlay(); inkOverlay.Handle = this.pictureBox1.Handle;// this.Handle;//整個窗體 inkOverlay.Enabled = true; /// summary /// 保存圖片 /// /summary /// param name="sender" /param /// param name="e" /param private void buttonSave_Click(object sender, EventArgs e) SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "GIF IMAGES(*.gif)|*.gif"; if (sfd.ShowDialog() == DialogResult.OK) txtpath.Text = sfd.FileName; FileStream gifFile; byte[] fortifiedGif = null; // open the file for writing gifFile = File.OpenWrite(txtpath.Text); // Generate the fortified GIF represenation of the ink fortifiedGif = inkOverlay.Ink.Save(PersistenceFormat.Gif); // Write and close the gif file gifFile.Write(fortifiedGif, 0, fortifiedGif.Length); gifFile.Close(); this.pictureBox2.Image = Image.FromFile(sfd.FileName);
geovindu 读者是,读之者,者之读.一沙一世界! to be is to do举世皆清我独浊,众人皆醒我独醉.俺是农民工,程序员.
《Visual Edge Computing Service视图计算产品发布介绍》PDF 立即下载
相关文章
- C#WinForm中支持透明的TextBox控件
- C#【必备技能篇】Winform项目加密
- WinForm 之Control.Invoke 和Control.BeginInvoke 方法的使用 Control 不能在创建它的 Thread 之外被调用。但可以通过 invoke 来保证 C
- Winform-控制边框显示属性
- 基于C#+MySQL实现(WinForm)企业设备使用信息管理系统【100010191】
- 基于Python+MySQL编写的(WinForm)图书管理系统【100010099】
- laravel 5.5 api接口开发:JWT安装+实现API token 认证
- 使用flink Table &Sql api来构建批量和流式应用(2)Table API概述
- winform怎么设置某种颜色透明?
- C# WinForm实现窗体上控件自由拖动功能示例-OK
- winform webform 简单高效的界面框架
- C# WinForm设置透明
- c# winform 窗体起始位置Position 设置
- Winform自定义窗体样式,实现标题栏可灵活自定义
- C# winform窗口打开特效及窗口位置居中
- [转]C#WinForm应用程序——添加菜单栏MenuStrip
- [转]C#WinForm应用程序——添加菜单栏MenuStrip
- 在Winform窗口中为DataGridview单元格添加ComboBox