开发者

I want to make animation in Inkcanvas control WPF

I want to make animation in Inkcanvas control like draw stroke and stroke path so it can move over t开发者_如何学编程he stroke path how ?


First grab the strokes from the InkCanvas.

Then get a GeometryPath from each stroke by calling GetGeometry() on the strokes.

After that you can use the GeometryPath in a Path animation

If you want to animate a pencil/brush along the stroke you'll need some extra calculations if you want to keep the pencil perpendicular (or at some angle) to the stroke.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜