gpt4 book ai didi

wpf - 编码 WPF 路径数据

转载 作者:行者123 更新时间:2023-12-04 21:43:45 25 4
gpt4 key购买 nike

在 WPF 中,是否可以将其编码为具有 Data 属性的单个 Path 标记?

<Path Stroke="White" StrokeThickness="2">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="7,32">
<ArcSegment Point="7,18" Size="200,50" RotationAngle="0" IsLargeArc="False" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>

像这样:(只有这个是完全错误的形状)

<Path Stroke="DarkGoldenRod" StrokeThickness="3" 
Data="M 100,200 C 100,25 400,350 400,175 H 280" />

最佳答案

试试这个:

<Path Data="M 7,32 A 200,50 0 0 0 7,18" .../>

另见 Path Markup Syntax .

关于wpf - 编码 WPF 路径数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5196536/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com