使用Skiasharp创建充满颜色的圆圈
我是与Skiasharp一起与Avalonia合作的新手。我查看了如何制作一些基本形状的文档和示例,例如圆圈,矩形等。有人可以就如何制作充满颜色的交叉圆圈提供建议或建议吗?我认为最好进行USERCORTROL,例如WPF。
I am new to working with skiasharp with avalonia. I looked at the documentation and examples of how to make some basic shapes, like circles, rectangles, etc. Can anyone give advice or suggestion on how to make a crossed circle filled with color? I think it would be best to do UserControl, something like in wpf.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您如何包装(USERCONTROL)真正取决于UI元素的用例和意图。
ViewBox
像SVG一样缩放其内容。然后,我们在其中填充
canvas
,并添加我们的椭圆
。然后,我们添加矩形
并在(左,右)中的位置,然后添加rotateTransform
。这应该让你前进。
How you package this up (UserControl) really depends on the use case and intention of the UI element.
A
ViewBox
scales it's content, like an SVG.We then plop a
Canvas
in there and add ourEllipse
. We then add aRectangle
and position in (Left, Right) and then add aRotateTransform
.This should get you going.