Question

I want to analyze a user's input on an InkPresenter to a template.

Pseudo-xaml

<Canvas>
  <Canvas ScaleTransform="to match parent size">
    <Path Data="some line or bezier">
  <InkPresenter>

So, essentially, what I need is to determine the actual points, relative to the top level Canvas that the Path drew on the screen. Also, I need to know directionality, i.e. did the start of the Stroke start near the start of the Path?

Perhaps it would be better to manually render the lines/curves instead of using the Path.Data?

Was it helpful?

Solution

Well, I'm going with calculating the location of the Path to compare with StylusPoints on mouse down, move, and up. Going pretty straight forward. This code is very helpful - http://eztier.com/dba2day/?p=181

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top