featherbear / NDI-Telestrator

NDI Annotation tool
https://featherbear.cc/blog/post/ndi-telestrator/
MIT License
20 stars 4 forks source link

Investigate RealTimeStylus API #1

Open featherbear opened 2 years ago

featherbear commented 2 years ago

The current InkCanvas implementation is very hacky, in order to capture intermediate strokes.

With the InkCanvas implementation, strokes are not registered until the pen is released. This means that we can't capture the current "intermediate" stroke that is being drawn, which means no nice tracings. A workaround was built that intercepted the pen movement event to add control points to a temporary stroke - but this isn't very performant

Another API (RealTimeStylus) exists which may provide better integration for our use case.

featherbear commented 2 years ago

image

featherbear commented 2 years ago

https://backworlds.com/under-pressure/

featherbear commented 2 years ago

https://stackoverflow.com/questions/42743699/pen-input-in-windows-using-c

featherbear commented 2 years ago

https://stackoverflow.com/questions/46582910/is-there-a-way-to-get-the-current-stroke-on-an-inkcanvas

featherbear commented 2 years ago

UWP https://github.com/Microsoft/Windows-appsample-coloringbook

featherbear commented 2 years ago

https://mtaulty.com/2016/06/21/windows-10-anniversary-update-more-on-inking-with-wet-ink/