Question

How to render ink on screen using DierctX?

I am aware of InkManager in C# for rendering ink on canvas. I am trying to do similar functionality using SharpDX. But I don't have any sample code to refer.

Is there any tutorial or sample code which explains about rendering ink using directX? Anything is ok, either C++ or C#

Was it helpful?

Solution

The closest technology in DirectX that would provide a basic infrastructure for "Ink rendering" would be Direct2D. This is probably what "InkManager" is using internally, at least for the drawing part. There is no "handwriting recognition" in Direct2D. But as Direct2D is a low level API, you will have to manage lots of details.

There are dozens of samples in SharpDX with Direct2D (either samples on Desktop - where the drawing part is still valid on WinRT, or plain WinRT), but you will not have a direct "Ink" samples, so you will have to dig into this yourself.

Also, the only source of information for Direct2D is msdn. There is no book and very view tutorials about this API.

OTHER TIPS

Have a look at: http://code.msdn.microsoft.com/windowsapps/XAML-SwapChainPanel-00cb688b

Specifically scenarios 2 and 4. I have used this example to render and scale inkstrokes from C#.

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