문제

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#

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top