简体   繁体   中英

I want to make animation in Inkcanvas control WPF

我想在Inkcanvas控件中制作动画,例如绘制笔触和笔触路径,以便它可以在笔触路径上移动?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM