Rendering ink using directX

521 views Asked by At

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#

2

There are 2 answers

0
xoofx On BEST ANSWER

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.

0
Glenn Sandoval On

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#.