0

I have a custom hardware device, which reports some coordinates through custom API.

What I wanted

I want to show hardware coordinates on WPF as ink, in real-time.

My thoughts

Reading Creating an Ink Input Control, I think translating hardware coordinate to a WPF stylus event, and send to my specific InkCanvas control is one method.

But I'm stuck at first step, attempting to raise stylus event to my StylusPlugIn at creating a RawStylusInput object, which has an internal only constructor.

Any ideas?

Dia
  • 851
  • 1
  • 15
  • 35
  • Can you not just manually create Strokes and StylusPoints? E.g. as done here: https://stackoverflow.com/a/69727747/1136211 – Clemens Oct 05 '22 at 09:24
  • @Clemens I'm currently using that method, but have performance issue on low-end computers, because Strokes must be added on the UI thread. I would like to directly inject on the Pen thread. – Dia Oct 06 '22 at 02:28

0 Answers0