資源簡介
一個適用筆畫輸入的字體識別程序 應用于windows平板等移動設備的輸入時 手寫輸入的地方 識別率高 界面簡潔 源碼可二次開發
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Windows;
using?System.Windows.Controls;
using?System.Windows.Data;
using?System.Windows.Documents;
using?System.Windows.Input;
using?System.Windows.Media;
using?System.Windows.Media.Imaging;
using?System.Windows.Navigation;
using?System.Windows.Shapes;
namespace?MyTablet
{
????using?System.ComponentModel;
????using?System.Windows.Ink;
????using?MyTablet.Systems;
????///?
????///?Interaction?logic?for?InkTablet.xaml
????///?
????public?partial?class?InkTablet?:?UserControl?INotifyPropertyChanged
????{
????????public?InkTablet()
????????{
????????????InitializeComponent();
????????????this.theInkCanvas.StrokeCollected?+=?new?InkCanvasStrokeCollectedEventHandler(this.theInkCanvas_StrokeCollected);
????????}
????????private?Cursor?_penCursor;
????????public?Cursor?PenCursor
????????{
????????????get
????????????{
????????????????return?this._penCursor;
????????????}
????????????set
????????????{
????????????????if?(value?!=?this._penCursor)
????????????????{
????????????????????this._penCursor?=?value;
????????????????????this.NotifyPropertyChanged(“PenCursor“);
????????????????}
????????????}
????????}
????????public?void?SetCursor()
????????{
????????????DrawingBrush?db?=?this.FindResource(“dPen“)?as?DrawingBrush;
????????????Rectangle?exampleRec?=?new?Rectangle();
????????????exampleRec.Width?=?28;
????????????exampleRec.Height?=?32;
????????????exampleRec.Fill?=?db;
????????????this.PenCursor?=?CursorHelper.CreateCursor(exampleRec?5?5);
????????}
????????private?Visibility?_isTabletVisible;
????????public?Visibility?IsTabletVisible
????????{
????????????get
????????????{
????????????????return?this._isTabletVisible;
????????????}
????????????set
????????????{
????????????????if?(value?!=?this._isTabletVisible)
????????????????{
????????????????????this._isTabletVisible?=?value;
????????????????????this.NotifyPropertyChanged(“IsTabletVisible“);
????????????????}
????????????}
????????}
????????private?ICommand?_newCommand;
????????public?ICommand?NewCommand
????????{
????????????get
????????????{
????????????????return?this._newCommand????(this._newCommand?=?new?DelegateCommand(this.OnNewClick));
????????????}
????????}
????????private?void?OnNewClick()
????????{
????????????this.theInkCanvas.Strokes.Clear();
????????????this.StrokeWordList?=?new?List();
????????}
????????private?IList?_strokeWordList;
????????public?IList?StrokeWordList
????????{
????????????get
????????????{
????????????????return?this._strokeWordList;
????????????}
????????????set
????????????{
????????????????if?(value?!=?this._strokeWordList)
????????????????{
????????????????????this._strokeWordList?=?value;
????????????????????this.NotifyPropertyChanged(“StrokeWordList“);
????????????????}
????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\
?????文件???????38428??2016-03-23?17:31??wpf手寫識別\MyTablet\InkTablet.xaml
?????文件????????5767??2016-03-23?17:31??wpf手寫識別\MyTablet\InkTablet.xaml.cs
?????文件????????3592??2016-03-23?17:31??wpf手寫識別\MyTablet\MyTablet.csproj
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\Properties\
?????文件????????1428??2016-03-23?17:31??wpf手寫識別\MyTablet\Properties\AssemblyInfo.cs
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\Systems\
?????文件????????3908??2016-03-23?17:31??wpf手寫識別\MyTablet\Systems\CommandManagerHelper.cs
?????文件????????2494??2016-03-23?17:31??wpf手寫識別\MyTablet\Systems\CursorHelper.cs
?????文件???????10279??2016-03-23?17:31??wpf手寫識別\MyTablet\Systems\DelegateCommand.cs
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\
?????文件?????1215328??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\IACore.dll
?????文件???????85352??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\IALoader.dll
?????文件??????117600??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\IAWinFX.dll
?????文件??????113504??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\Microsoft.Ink.Analysis.dll
?????文件???????32256??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\MyTablet.dll
?????文件???????48640??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\MyTablet.pdb
?????文件??????630784??2016-03-23?17:31??wpf手寫識別\MyTablet\bin\Debug\System.Drawing.dll
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\
?????目錄???????????0??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\
?????文件????????7197??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????16427??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\InkTablet.baml
?????文件????????4273??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\InkTablet.g.cs
?????文件????????4273??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\InkTablet.g.i.cs
?????文件????????1947??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\MyTablet.csproj.FileListAbsolute.txt
?????文件???????28441??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\MyTablet.csprojResolveAssemblyReference.cache
?????文件???????32256??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\MyTablet.dll
?????文件???????16653??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\MyTablet.g.resources
?????文件???????48640??2016-03-23?17:31??wpf手寫識別\MyTablet\obj\Debug\MyTablet.pdb
............此處省略99個文件信息
評論
共有 條評論