在 MXML 图形中绘制圆弧 [英] draw a circular arc in MXML Graphics

查看:32
本文介绍了在 MXML 图形中绘制圆弧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以在不涉及贝塞尔曲线的 MXML 图形中绘制圆弧?还是应该创建自己的组件?

Is there a simple way to draw a circular arc in MXML graphics that doesn't involve beziers? Or should I create my own component?

谢谢!

f

推荐答案

我最终创建了自己的 mxml 图形组件来绘制圆弧.我覆盖了 Ellipse Spark 原语并使用 AS 作为弧数学 - 主要是复制这篇很棒的帖子,其中指向此代码.

I ended up creating my own mxml graphics component to draw arcs. I override Ellipse Spark primitive and use AS for the arc math - mostly copying this great post, which points to this code.

这篇关于在 MXML 图形中绘制圆弧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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