一个圆及其内部半径为 56 的直线
如何在圆内画线,线仅在圆内可见,我需要控制线角度。假设有一个圆,并在其中画了一条带有天使 56 的线。如何在 C# WPF 中执行此操作。
How to draw line inside circle, line will be visible only inside circle and I need to have control on line angel. Let say one circle and line inside it with angel 56. How to do this in C# WPF.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只需将一个
Ellipse
和一个Line
放入Panel 中,让它们在彼此之上绘制(例如网格),然后根据需要调整参数。Just put an
Ellipse
and aLine
in a Panel that lets them draw on top of each other (such as a Grid), and adjust the parameters to whatever you want.如果您想在 XAML 中执行此操作,请像这样执行:
If you want to do it in XAML, do it like this:
如果您仔细阅读了相应的概述,您应该能够管理:几何 & 形状
If you read through the respective overviews you should be able to manage: Geometry & Shapes