|
@@ -9,8 +9,6 @@ using System.Windows.Ink;
|
9
|
9
|
using System.Windows.Input;
|
10
|
10
|
using System.Windows.Media;
|
11
|
11
|
|
12
|
|
-using TStudyDigitalPen.HID;
|
13
|
|
-
|
14
|
12
|
using XHWK.Model;
|
15
|
13
|
|
16
|
14
|
namespace XHWK.WKTool
|
|
@@ -20,12 +18,14 @@ namespace XHWK.WKTool
|
20
|
18
|
/// </summary>
|
21
|
19
|
public partial class PracticeWindow : Window
|
22
|
20
|
{
|
23
|
|
- //声明一个 DrawingAttributes 类型的变量
|
|
21
|
+ //声明一个 DrawingAttributes 类型的变量
|
24
|
22
|
private DrawingAttributes drawingAttributes;
|
|
23
|
+
|
25
|
24
|
private DrawingAttributes drawing;
|
26
|
25
|
private ViewModel viewModel;
|
|
26
|
+
|
27
|
27
|
/// <summary>
|
28
|
|
- /// 0 画笔 1 矩形 2 圆形
|
|
28
|
+ /// 0 画笔 1 矩形 2 圆形
|
29
|
29
|
/// </summary>
|
30
|
30
|
private int flg = 0;
|
31
|
31
|
|
|
@@ -33,20 +33,24 @@ namespace XHWK.WKTool
|
33
|
33
|
/// 当前画笔颜色
|
34
|
34
|
/// </summary>
|
35
|
35
|
private Color Colour = Colors.Red;
|
|
36
|
+
|
36
|
37
|
/// <summary>
|
37
|
38
|
/// 当前画笔宽
|
38
|
39
|
/// </summary>
|
39
|
40
|
private int Wit = 2;
|
|
41
|
+
|
40
|
42
|
/// <summary>
|
41
|
43
|
/// 当前画笔高
|
42
|
44
|
/// </summary>
|
43
|
45
|
private int Hei = 2;
|
|
46
|
+
|
44
|
47
|
public PracticeWindow()
|
45
|
48
|
{
|
46
|
49
|
InitializeComponent();
|
47
|
|
- InitPen();
|
|
50
|
+
|
48
|
51
|
InitTQLPPen();
|
49
|
52
|
}
|
|
53
|
+
|
50
|
54
|
public void Initialize(string _imgPath = null)
|
51
|
55
|
{
|
52
|
56
|
flg = 0;
|
|
@@ -59,25 +63,19 @@ namespace XHWK.WKTool
|
59
|
63
|
// imgCanvas.Source = new BitmapImage(new Uri(_imgPath));
|
60
|
64
|
//}
|
61
|
65
|
|
62
|
|
-
|
63
|
|
-
|
64
|
|
-
|
65
|
|
- //创建 DrawingAttributes 类的一个实例
|
|
66
|
+ //创建 DrawingAttributes 类的一个实例
|
66
|
67
|
drawingAttributes = new DrawingAttributes();
|
67
|
68
|
|
68
|
69
|
//drawingAttributes.StylusTip = StylusTip.Rectangle;
|
69
|
70
|
//drawingAttributes.IsHighlighter = false;
|
70
|
71
|
//drawingAttributes.IgnorePressure = true;
|
71
|
72
|
|
72
|
|
-
|
73
|
|
-
|
74
|
|
- ////将 InkCanvas 的 DefaultDrawingAttributes 属性的值赋成创建的 DrawingAttributes 类的对象的引用
|
75
|
|
- ////InkCanvas 通过 DefaultDrawingAttributes 属性来获取墨迹的各种设置,该属性的类型为 DrawingAttributes 型
|
|
73
|
+ ////将 InkCanvas 的 DefaultDrawingAttributes 属性的值赋成创建的 DrawingAttributes 类的对象的引用
|
|
74
|
+ ////InkCanvas 通过 DefaultDrawingAttributes 属性来获取墨迹的各种设置,该属性的类型为 DrawingAttributes 型
|
76
|
75
|
blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
|
77
|
76
|
Pen();
|
78
|
77
|
//blackboard_canvas.Cursor = Cursors.Pen;
|
79
|
78
|
|
80
|
|
-
|
81
|
79
|
//Cursor cus = new Cursor(@"G:\06.cur");
|
82
|
80
|
|
83
|
81
|
//blackboard_canvas.Cursor = cus;
|
|
@@ -91,6 +89,7 @@ namespace XHWK.WKTool
|
91
|
89
|
//APP.W_ScreenRecordingToolbarWindow.Owner = this;
|
92
|
90
|
//APP.W_ScreenRecordingToolbarWindow.Topmost = true;
|
93
|
91
|
}
|
|
92
|
+
|
94
|
93
|
/// <summary>
|
95
|
94
|
/// 画笔颜色事件 白色
|
96
|
95
|
/// </summary>
|
|
@@ -102,6 +101,7 @@ namespace XHWK.WKTool
|
102
|
101
|
drawingAttributes.Color = Colors.White;
|
103
|
102
|
Colour = Colors.White;
|
104
|
103
|
}
|
|
104
|
+
|
105
|
105
|
/// <summary>
|
106
|
106
|
/// 画笔颜色事件 红色
|
107
|
107
|
/// </summary>
|
|
@@ -112,6 +112,7 @@ namespace XHWK.WKTool
|
112
|
112
|
drawingAttributes.Color = Colors.Red;
|
113
|
113
|
Colour = Colors.Red;
|
114
|
114
|
}
|
|
115
|
+
|
115
|
116
|
/// <summary>
|
116
|
117
|
/// 画笔颜色事件 黑色
|
117
|
118
|
/// </summary>
|
|
@@ -123,6 +124,7 @@ namespace XHWK.WKTool
|
123
|
124
|
drawingAttributes.Color = Colors.Black;
|
124
|
125
|
Colour = Colors.Black;
|
125
|
126
|
}
|
|
127
|
+
|
126
|
128
|
/// <summary>
|
127
|
129
|
/// 画笔颜色事件 青色
|
128
|
130
|
/// </summary>
|
|
@@ -134,6 +136,7 @@ namespace XHWK.WKTool
|
134
|
136
|
drawingAttributes.Color = Colors.LimeGreen;
|
135
|
137
|
Colour = Colors.LimeGreen;
|
136
|
138
|
}
|
|
139
|
+
|
137
|
140
|
/// <summary>
|
138
|
141
|
/// 画笔颜色事件 黄色
|
139
|
142
|
/// </summary>
|
|
@@ -145,6 +148,7 @@ namespace XHWK.WKTool
|
145
|
148
|
drawingAttributes.Color = Colors.Gold;
|
146
|
149
|
Colour = Colors.Gold;
|
147
|
150
|
}
|
|
151
|
+
|
148
|
152
|
/// <summary>
|
149
|
153
|
/// 画笔颜色事件 蓝色
|
150
|
154
|
/// </summary>
|
|
@@ -156,6 +160,7 @@ namespace XHWK.WKTool
|
156
|
160
|
drawingAttributes.Color = Colors.DeepSkyBlue;
|
157
|
161
|
Colour = Colors.DeepSkyBlue;
|
158
|
162
|
}
|
|
163
|
+
|
159
|
164
|
/// <summary>
|
160
|
165
|
/// 画笔粗细事件 细
|
161
|
166
|
/// </summary>
|
|
@@ -169,6 +174,7 @@ namespace XHWK.WKTool
|
169
|
174
|
Wit = 1;
|
170
|
175
|
Hei = 1;
|
171
|
176
|
}
|
|
177
|
+
|
172
|
178
|
/// <summary>
|
173
|
179
|
/// 画笔粗细事件 中
|
174
|
180
|
/// </summary>
|
|
@@ -181,8 +187,8 @@ namespace XHWK.WKTool
|
181
|
187
|
drawingAttributes.Height = 3;
|
182
|
188
|
Wit = 3;
|
183
|
189
|
Hei = 3;
|
184
|
|
-
|
185
|
190
|
}
|
|
191
|
+
|
186
|
192
|
/// <summary>
|
187
|
193
|
/// 画笔粗细事件 粗
|
188
|
194
|
/// </summary>
|
|
@@ -196,6 +202,7 @@ namespace XHWK.WKTool
|
196
|
202
|
Wit = 5;
|
197
|
203
|
Hei = 5;
|
198
|
204
|
}
|
|
205
|
+
|
199
|
206
|
/// <summary>
|
200
|
207
|
/// 橡皮
|
201
|
208
|
/// </summary>
|
|
@@ -207,6 +214,7 @@ namespace XHWK.WKTool
|
207
|
214
|
blackboard_canvas.EditingMode = InkCanvasEditingMode.EraseByPoint;
|
208
|
215
|
blackboard_canvas.EraserShape = new EllipseStylusShape(64, 64, 0);
|
209
|
216
|
}
|
|
217
|
+
|
210
|
218
|
/// <summary>
|
211
|
219
|
/// 画笔
|
212
|
220
|
/// </summary>
|
|
@@ -220,6 +228,7 @@ namespace XHWK.WKTool
|
220
|
228
|
|
221
|
229
|
blackboard_canvas.Cursor = Cursors.Pen;
|
222
|
230
|
}
|
|
231
|
+
|
223
|
232
|
/// <summary>
|
224
|
233
|
/// 圆
|
225
|
234
|
/// </summary>
|
|
@@ -235,12 +244,12 @@ namespace XHWK.WKTool
|
235
|
244
|
//FitToCurve = true,
|
236
|
245
|
IsHighlighter = false,
|
237
|
246
|
IgnorePressure = true,
|
238
|
|
-
|
239
|
247
|
};
|
240
|
248
|
blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
|
241
|
249
|
blackboard_canvas.EditingMode = InkCanvasEditingMode.None;
|
242
|
250
|
blackboard_canvas.Cursor = Cursors.Cross;
|
243
|
251
|
}
|
|
252
|
+
|
244
|
253
|
/// <summary>
|
245
|
254
|
/// 矩形
|
246
|
255
|
/// </summary>
|
|
@@ -256,13 +265,14 @@ namespace XHWK.WKTool
|
256
|
265
|
//FitToCurve = true,
|
257
|
266
|
IsHighlighter = false,
|
258
|
267
|
IgnorePressure = true,
|
259
|
|
-
|
260
|
268
|
};
|
261
|
269
|
blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
|
262
|
270
|
blackboard_canvas.EditingMode = InkCanvasEditingMode.None;
|
263
|
271
|
blackboard_canvas.Cursor = Cursors.Cross;
|
264
|
272
|
}
|
|
273
|
+
|
265
|
274
|
private System.Windows.Point iniP;
|
|
275
|
+
|
266
|
276
|
private void blackboard_canvas_MouseDown(object sender, MouseButtonEventArgs e)
|
267
|
277
|
{
|
268
|
278
|
if (flg != 0)
|
|
@@ -276,6 +286,7 @@ namespace XHWK.WKTool
|
276
|
286
|
|
277
|
287
|
private Stroke StrokeRound;
|
278
|
288
|
private Stroke StrokeRectangle;
|
|
289
|
+
|
279
|
290
|
private void blackboard_canvas_MouseMove(object sender, MouseEventArgs e)
|
280
|
291
|
{
|
281
|
292
|
if (flg != 0)
|
|
@@ -329,6 +340,7 @@ namespace XHWK.WKTool
|
329
|
340
|
}
|
330
|
341
|
}
|
331
|
342
|
}
|
|
343
|
+
|
332
|
344
|
private List<System.Windows.Point> GenerateEclipseGeometry(System.Windows.Point st, System.Windows.Point ed)
|
333
|
345
|
{
|
334
|
346
|
double a = 0.5 * (ed.X - st.X);
|
|
@@ -340,6 +352,7 @@ namespace XHWK.WKTool
|
340
|
352
|
}
|
341
|
353
|
return pointList;
|
342
|
354
|
}
|
|
355
|
+
|
343
|
356
|
/// <summary>
|
344
|
357
|
/// 鼠标松开时
|
345
|
358
|
/// </summary>
|
|
@@ -350,6 +363,7 @@ namespace XHWK.WKTool
|
350
|
363
|
StrokeRound = null;
|
351
|
364
|
StrokeRectangle = null;
|
352
|
365
|
}
|
|
366
|
+
|
353
|
367
|
/// <summary>
|
354
|
368
|
/// 鼠标右键
|
355
|
369
|
/// </summary>
|
|
@@ -367,10 +381,11 @@ namespace XHWK.WKTool
|
367
|
381
|
}
|
368
|
382
|
Hide();
|
369
|
383
|
}
|
|
384
|
+
|
370
|
385
|
/// <summary>
|
371
|
386
|
/// 鼠标中键点击
|
372
|
387
|
/// </summary>
|
373
|
|
- void SwitchPages()
|
|
388
|
+ private void SwitchPages()
|
374
|
389
|
{
|
375
|
390
|
try
|
376
|
391
|
{
|
|
@@ -386,7 +401,6 @@ namespace XHWK.WKTool
|
386
|
401
|
}
|
387
|
402
|
}
|
388
|
403
|
|
389
|
|
-
|
390
|
404
|
private void blackboard_canvas_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
391
|
405
|
{
|
392
|
406
|
if (APP.W_ScreenRecordingToolbarWindow.flg == 10)
|
|
@@ -415,6 +429,7 @@ namespace XHWK.WKTool
|
415
|
429
|
SwitchPages();
|
416
|
430
|
//Hide();
|
417
|
431
|
}
|
|
432
|
+
|
418
|
433
|
/// <summary>
|
419
|
434
|
/// 退出批注并清空画板
|
420
|
435
|
/// </summary>
|
|
@@ -437,9 +452,10 @@ namespace XHWK.WKTool
|
437
|
452
|
}))).Start();
|
438
|
453
|
}
|
439
|
454
|
|
440
|
|
-
|
441
|
455
|
#region 点阵笔相关
|
|
456
|
+
|
442
|
457
|
#region 值初始化
|
|
458
|
+
|
443
|
459
|
// 不同尺寸点阵纸点阵宽高尺寸计算方法为:纸张物理尺寸(毫米)/0.3 *8,详见 开发必读.pdf 文档
|
444
|
460
|
|
445
|
461
|
/// <summary>
|
|
@@ -472,46 +488,7 @@ namespace XHWK.WKTool
|
472
|
488
|
/// </summary>
|
473
|
489
|
private bool isPenDown;
|
474
|
490
|
|
475
|
|
- //当前点阵地址
|
476
|
|
- private string currentPageSerial = string.Empty;
|
477
|
|
-
|
478
|
|
- //不同点阵地址对应的笔迹绘制图片,用于实现在不同点阵地址书写切换时,显示书写内容自动切换
|
479
|
|
- //本例图片放在内存中存储,对于大量或者需要在多个点阵地址对应图片进行切换演示,建议将图片存储到文件,以免内存溢出
|
480
|
|
- private Dictionary<string, System.Drawing.Image> pagesDic = new Dictionary<string, System.Drawing.Image>();
|
481
|
|
- #endregion
|
482
|
|
- public void InitPen()
|
483
|
|
- {
|
484
|
|
- stroke = new List<System.Drawing.Point>();
|
485
|
|
- //获取点阵笔实例,并绑定点阵笔事件
|
486
|
|
- //将授权文件内容传入,获取点阵笔对象实例
|
487
|
|
- APP.digitalPen = DigitalPenHID.GetInstance(certificates.MyLicense.Bytes);
|
488
|
|
- //绑定笔连接事件
|
489
|
|
- APP.digitalPen.PenConnected += OnPenConnect;
|
490
|
|
- //绑定笔断开事件
|
491
|
|
- APP.digitalPen.PenDisconnect += OnPenDisconnect;
|
492
|
|
- //绑定笔书写输出坐标事件
|
493
|
|
- APP.digitalPen.PenCoordinate += OnPenCoordinate;
|
494
|
|
- //绑定抬笔事件
|
495
|
|
- APP.digitalPen.PenUp += OnPenUp;
|
496
|
|
- //绑定落笔事件
|
497
|
|
- APP.digitalPen.PenDown += OnPenDown;
|
498
|
|
- APP.digitalPen.PenBatteryCapacity += OnBatteryCapacity;
|
499
|
|
- APP.digitalPen.PenMemoryFillLevel += OnMemoryFillLevel;
|
500
|
|
- //完成初始化点阵笔,开始与点阵笔通信
|
501
|
|
- ERROR_CODE ER = APP.digitalPen.Start();
|
502
|
|
-
|
503
|
|
- ////绑定笔在新的点阵地址页面书写事件
|
504
|
|
- //APP.digitalPen.PenNewPage += APP.digitalPen_OnPenNewPage;
|
505
|
|
- ////绑定笔信息事件
|
506
|
|
- //APP.digitalPen.PenInfo += APP.digitalPen_OnPenInfo;
|
507
|
|
- //启动接收笔数据,完成初始化工作
|
508
|
|
- //ERROR_CODE rc = APP.digitalPen.Start();
|
509
|
|
- //判断是否成功
|
510
|
|
- if (ER != ERROR_CODE.ERROR_OK)
|
511
|
|
- {
|
512
|
|
- MessageWindow.Show("初始化失败,授权过期,返回值:" + ER.ToString());
|
513
|
|
- }
|
514
|
|
- }
|
|
491
|
+ #endregion 值初始化
|
515
|
492
|
|
516
|
493
|
/// <summary>
|
517
|
494
|
/// 落笔
|
|
@@ -553,14 +530,6 @@ namespace XHWK.WKTool
|
553
|
530
|
|
554
|
531
|
stroke.Clear();
|
555
|
532
|
}
|
556
|
|
- //if (APP.pageData.currpage > 0)
|
557
|
|
- //{
|
558
|
|
- // Dispatcher.Invoke(new Action(() =>
|
559
|
|
- // {
|
560
|
|
- // myblackboard.changepages(0, 0, true, Color, PenSize, APP.pageData.currpage - 1, 0);
|
561
|
|
- // }));
|
562
|
|
- //}
|
563
|
|
-
|
564
|
533
|
|
565
|
534
|
if (strokes != null && strokes.StylusPoints.Count > 1)
|
566
|
535
|
{
|
|
@@ -615,20 +584,9 @@ namespace XHWK.WKTool
|
615
|
584
|
APP.PenSerial = penSerial;
|
616
|
585
|
APP.PenStatus = true;
|
617
|
586
|
this.penSerial = penSerial;
|
618
|
|
- //连接后,在获取笔数据前,可以清除笔内的历史数据
|
619
|
|
- //APP.digitalPen.ClearMemory(penSerial);
|
620
|
|
-
|
621
|
|
- //开始接收笔数据
|
622
|
|
- APP.digitalPen.GetPenData(penSerial);
|
623
|
|
- //UpdateDevStatus();
|
624
|
|
- ////Dispatcher.Invoke(new Action(() =>
|
625
|
|
- ////{
|
626
|
|
- //// txbNotConnected.Text = "已连接";
|
627
|
|
- //// txbNotConnecteds.Text = "已连接";
|
628
|
|
- ////}));
|
629
|
|
-
|
630
|
587
|
}
|
631
|
588
|
}
|
|
589
|
+
|
632
|
590
|
/// <summary>
|
633
|
591
|
/// 电池电量
|
634
|
592
|
/// </summary>
|
|
@@ -739,7 +697,6 @@ namespace XHWK.WKTool
|
739
|
697
|
//blackboard_canvas.Strokes = new StrokeCollection();
|
740
|
698
|
strokes = new Stroke(stylusPoints);
|
741
|
699
|
|
742
|
|
-
|
743
|
700
|
strokes.DrawingAttributes = drawing;
|
744
|
701
|
//blackboard_canvas.Strokes.Add(strokes);
|
745
|
702
|
|
|
@@ -778,75 +735,14 @@ namespace XHWK.WKTool
|
778
|
735
|
}
|
779
|
736
|
}));
|
780
|
737
|
}
|
781
|
|
-
|
782
|
738
|
}
|
783
|
739
|
}
|
784
|
740
|
}
|
785
|
|
- bool isFirst = true;
|
|
741
|
+
|
|
742
|
+ private bool isFirst = true;
|
786
|
743
|
private StylusPointCollection stylusPoints = new StylusPointCollection();
|
787
|
744
|
private StylusPoint stylusPoint = new StylusPoint();
|
788
|
745
|
private Stroke strokes;
|
789
|
|
- /// <summary>
|
790
|
|
- /// 停止笔
|
791
|
|
- /// </summary>
|
792
|
|
- public void StopDigitalPen()
|
793
|
|
- {
|
794
|
|
- //停止,释放资源
|
795
|
|
- APP.digitalPen.Stop();
|
796
|
|
- }
|
797
|
|
- /// <summary>
|
798
|
|
- /// 清空笔内存储
|
799
|
|
- /// </summary>
|
800
|
|
- public void ClearPenStorage()
|
801
|
|
- {
|
802
|
|
- if (!string.IsNullOrEmpty(penSerial))
|
803
|
|
- {
|
804
|
|
- APP.digitalPen.ClearMemory(penSerial);
|
805
|
|
- }
|
806
|
|
- }
|
807
|
|
- /// <summary>
|
808
|
|
- /// 获取剩余电量
|
809
|
|
- /// </summary>
|
810
|
|
- public void GetPenElectricityQuantity()
|
811
|
|
- {
|
812
|
|
- if (!string.IsNullOrEmpty(penSerial))
|
813
|
|
- {
|
814
|
|
- APP.digitalPen.GetBatteryCapacity(penSerial);
|
815
|
|
- }
|
816
|
|
- }
|
817
|
|
-
|
818
|
|
- /// <summary>
|
819
|
|
- /// 获取存储空间
|
820
|
|
- /// </summary>
|
821
|
|
- public void GetUsedStorage()
|
822
|
|
- {
|
823
|
|
- if (!string.IsNullOrEmpty(penSerial))
|
824
|
|
- {
|
825
|
|
- APP.digitalPen.GetMemoryFillLevel(penSerial);
|
826
|
|
- }
|
827
|
|
- }
|
828
|
|
-
|
829
|
|
- /// <summary>
|
830
|
|
- /// 开启悬浮
|
831
|
|
- /// </summary>
|
832
|
|
- public void 开启悬浮()
|
833
|
|
- {
|
834
|
|
- if (!string.IsNullOrEmpty(penSerial))
|
835
|
|
- {
|
836
|
|
- APP.digitalPen.SetPenHoverMode(true, penSerial);
|
837
|
|
- }
|
838
|
|
- }
|
839
|
|
-
|
840
|
|
- /// <summary>
|
841
|
|
- /// 关闭悬浮
|
842
|
|
- /// </summary>
|
843
|
|
- public void 关闭悬浮()
|
844
|
|
- {
|
845
|
|
- if (!string.IsNullOrEmpty(penSerial))
|
846
|
|
- {
|
847
|
|
- APP.digitalPen.SetPenHoverMode(false, penSerial);
|
848
|
|
- }
|
849
|
|
- }
|
850
|
746
|
|
851
|
747
|
/// <summary>
|
852
|
748
|
/// 引用user32.dll动态链接库(windows api),
|
|
@@ -856,20 +752,24 @@ namespace XHWK.WKTool
|
856
|
752
|
[System.Runtime.InteropServices.DllImport("user32.dll")]
|
857
|
753
|
private static extern int SetCursorPos(int x, int y);
|
858
|
754
|
|
859
|
|
- #endregion
|
|
755
|
+ #endregion 点阵笔相关
|
860
|
756
|
|
861
|
757
|
#region 腾千里手写笔
|
|
758
|
+
|
862
|
759
|
/// <summary>
|
863
|
760
|
/// 是否在书写
|
864
|
761
|
/// </summary>
|
865
|
|
- bool isTQLPenDown = false;
|
|
762
|
+ private bool isTQLPenDown = false;
|
|
763
|
+
|
866
|
764
|
/// <summary>
|
867
|
765
|
/// TQL点阵笔宽高
|
868
|
766
|
/// </summary>
|
869
|
767
|
//static float TQLA4_WIDTH = (float)1075 / (float)150 * (float)25.4 / (float)1.524; //OID4
|
870
|
768
|
//static float TQLA4_HEIGHT = (float)1512 / (float)150 * (float)25.4 / (float)1.524;
|
871
|
|
- static float TQLA4_WIDTH = (float)2480 / (float)300 * (float)25.4 / (float)1.524;
|
872
|
|
- static float TQLA4_HEIGHT = (float)3509 / (float)300 * (float)25.4 / (float)1.524;
|
|
769
|
+ private static float TQLA4_WIDTH = (float)2480 / (float)300 * (float)25.4 / (float)1.524;
|
|
770
|
+
|
|
771
|
+ private static float TQLA4_HEIGHT = (float)3509 / (float)300 * (float)25.4 / (float)1.524;
|
|
772
|
+
|
873
|
773
|
/// <summary>
|
874
|
774
|
/// 初始化
|
875
|
775
|
/// </summary>
|
|
@@ -884,6 +784,7 @@ namespace XHWK.WKTool
|
884
|
784
|
APP.TQLPenevents.InToType = 2;
|
885
|
785
|
}
|
886
|
786
|
}
|
|
787
|
+
|
887
|
788
|
/// <summary>
|
888
|
789
|
/// 笔落下
|
889
|
790
|
/// </summary>
|
|
@@ -899,6 +800,7 @@ namespace XHWK.WKTool
|
899
|
800
|
stylusPoint = new StylusPoint();
|
900
|
801
|
strokes = null;
|
901
|
802
|
}
|
|
803
|
+
|
902
|
804
|
/// <summary>
|
903
|
805
|
/// 笔抬起
|
904
|
806
|
/// </summary>
|
|
@@ -914,6 +816,7 @@ namespace XHWK.WKTool
|
914
|
816
|
stylusPoint = new StylusPoint();
|
915
|
817
|
strokes = null;
|
916
|
818
|
}
|
|
819
|
+
|
917
|
820
|
/// <summary>
|
918
|
821
|
/// 笔书写
|
919
|
822
|
/// </summary>
|
|
@@ -995,7 +898,7 @@ namespace XHWK.WKTool
|
995
|
898
|
}));
|
996
|
899
|
}
|
997
|
900
|
}
|
998
|
|
- #endregion
|
999
|
|
- }
|
1000
|
|
-}
|
1001
|
901
|
|
|
902
|
+ #endregion 腾千里手写笔
|
|
903
|
+ }
|
|
904
|
+}
|