如何在WPF中使用路径绘制贝塞尔曲线 [英] how to draw Bezier using path in wpf

查看:108
本文介绍了如何在WPF中使用路径绘制贝塞尔曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在wpf(c#)中使用路径绘制Bezier
使用鼠标移动更新贝塞尔曲线的点.

how to draw Bezier using path in wpf(c#)
the points of the bezier is updated with Mouse Move

推荐答案

使用Path类和BezierSegnement绘制路径.

用鼠标更新路径应该不会太困难.您只需要处理一些鼠标事件并适当地更新BezierSegment控制点即可.
Use the Path class and BezierSegnement to draw the path.

Updating the path with your mouse shouldn''t be too difficult. You will just need to handle some mouse events and update the BezierSegment control points appropriately.


看看"PathGeometry and PathSegments"部分 ^ ].
Have a look at the "PathGeometry and PathSegments" section here[^].


这篇关于如何在WPF中使用路径绘制贝塞尔曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆