在 Blend 中绘制圆角三角形

发布于 2024-09-30 14:54:15 字数 145 浏览 0 评论 0原文

我希望在 Expression Blend 中绘制一个带圆角的等边三角形,有点像矩形的半径。

我正在考虑在每个端点绘制一个圆/弧并进行剪切,但这很麻烦。

有没有一种形状可以做到这一点,或者您对如何做到这一点还有其他想法吗?

谢谢

I am looking to draw an equilateral triangle with rounded corners in Expression Blend, kind of like the radius of the rectangle behaves.

I am thinking along the lines of drawing a circle/arc at each end-point and clipping, but this is cumbersome.

Is there a shape that can do this or do you have any other ideas on how to do this?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

☆獨立☆ 2024-10-07 14:54:15

可能有点晚了,但以防万一有人试图做同样的事情...

我试图做同样的事情,在blen中挣扎着线条...我灰心丧气,最后在Adobe Illustrator中做到了,然后在混合中导入我的插画文件...它成功了! :D。

这是一个基本的圆角三角形,您可以使用它并根据需要调整宽度和高度的大小

 <Grid x:Name="Root">
    <Path Data="M42.6987,213C26.1987,213,19.5187,201.349,27.8537,187.109L115.1947,37.891C123.5307,23.651,137.1687,23.651,145.5047,37.891L232.8457,187.109C241.1807,201.349,234.4997,213,217.9997,213L42.6987,213z" Fill="White" Canvas.Left="-0.5" StrokeStartLineCap="Flat" Stretch="Fill" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="3" StrokeMiterLimit="10" StrokeLineJoin="Miter" Canvas.Top="-0.5" Width="45" Height="30" RenderTransformOrigin="0.5, 0.5" />
 </Grid>

It may be a little late, but just in case someone is trying to do the same...

I was trying to do the same, struggling with the lines in blen... I got discouraged and finally did it in Adobe Illustrator, then import my illustrator file in blend... IT WORKED! :D.

Here is a basic Rounded Triangle you can use and resize as you need with the width and height

 <Grid x:Name="Root">
    <Path Data="M42.6987,213C26.1987,213,19.5187,201.349,27.8537,187.109L115.1947,37.891C123.5307,23.651,137.1687,23.651,145.5047,37.891L232.8457,187.109C241.1807,201.349,234.4997,213,217.9997,213L42.6987,213z" Fill="White" Canvas.Left="-0.5" StrokeStartLineCap="Flat" Stretch="Fill" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="3" StrokeMiterLimit="10" StrokeLineJoin="Miter" Canvas.Top="-0.5" Width="45" Height="30" RenderTransformOrigin="0.5, 0.5" />
 </Grid>
紧拥背影 2024-10-07 14:54:15

画一条线,在每个端点都有一个圆弧。然后,您可以将所有这三个形状分组并从那里开始玩。

Draw a line with an arc at each end point. You can then group all these three shapes and play along from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文