如何检测SurfaceInkCanvas控件中的圆形手势? [英] How to detect circle gesture in SurfaceInkCanvas control?
问题描述
众所周知,在WPF中,InkCanvas可以检测到圆形手势,并且它具有Gesture事件。但我发现SurfaceInkCanvas没有手势事件,所以我想知道如何检测SurfaceInkCanvas控件中的圆形手势? SurfaceInkCanvas控件
可以处理系统手势,但是系统手势不包括圆圈手势。
As we know, in WPF, InkCanvas can detect the circle gesture, and it has the Gesture event. but I find the SurfaceInkCanvas hasn't the gesture event, so I want to know how to detect circle gesture in SurfaceInkCanvas control? The SurfaceInkCanvas control can deal the system gesture, but the system gesture doesn't include the circle gesture.
现在我需要实现两个人在一个圆圈绘制圆圈的功能同时认识他们。如果我可以使用SurfaceInkCanvas实现该功能?如果不能,如何实施呢?谢谢。
Now I need implement the feature that two peoples draw the circle at a same time and recognize them. If I can implement the feature using SurfaceInkCanvas? If can't, how to implement it? thanks.
推荐答案
从InkCanvas中获取Strokes并使用InkAnalyzer找出笔画的含义。请参阅
http://blogs.msdn.com/b/bsinghal/archive/2007/12/11/wpf-using-the-inkcanvas-control.aspx?wa=wsignin1.0
您是否缺少对SurfaceInkCanvas中特定的InkCanvas成员的访问权限,以便为您启用该方案?
Are you missing access to a specific member of InkCanvas in SurfaceInkCanvas that would enable the scenario for you?
这篇关于如何检测SurfaceInkCanvas控件中的圆形手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!