开发者

I want to make animation in Inkcanvas control WPF

开发者 https://www.devze.com 2023-02-22 21:22 出处:网络
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.

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

精彩评论

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