InkCanvas 笔尖时间戳

发布于 2024-09-30 19:43:19 字数 466 浏览 0 评论 0原文

在 WinForms 的 Microsoft.Ink 世界中,使用 InkCollector 对象,用户可以通过 这种方法。 WPF 世界依赖于 InkCanvas 对象,虽然它有很多属性,但我似乎找不到笔画中收集的 StylusPoints 的刻度或时间戳。在 WPF InkCanvas 中是否有等效的方法来执行此操作?

看起来我可以截取笔画这样,但 StylusPoint 是一个密封结构,因此我不能仅继承/添加新属性。

in the Microsoft.Ink world for WinForms, using an InkCollector object, a user could get the timestamp of a point in a stroke via this approach. The WPF world relies instead on the InkCanvas object, and while it has many properties, I can't seem to find a Tick or Timestamp for StylusPoints collected in the strokes. Is there an equivilant way to do this in the WPF InkCanvas?

it looks like I can intercept the strokes like this, but the StylusPoint is a sealed struct, so I can't just inherit/add a new property.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷情 2024-10-07 19:43:19

从您显示的链接中,函数的参数是 RawStylusInput - http://msdn.microsoft.com/en-us/library/system.windows.input.stylusplugins.rawstylusinput.aspx - 具有 Timestamp 属性。

因此,您似乎无法访问每个点的时间戳,而是每个事件的时间戳。我怀疑这就是 WinForms 提供的所有解决方案。

From the link you showed, the parameter to the functions is RawStylusInput - http://msdn.microsoft.com/en-us/library/system.windows.input.stylusplugins.rawstylusinput.aspx - which has a Timestamp property.

So, it seems you don't have access to a timestamp per point, but for each event. I suspect that's all the resolution available from WinForms anyway.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文