AS3更改现有线条的线条样式

发布于 2024-08-27 00:56:12 字数 182 浏览 4 评论 0原文

我正在绘制一条从 0,0 到 100,100 的线,

我使用它来修改线型:

draw_line.graphics.lineStyle(1, 0xFF0000);

该线现在的厚度为 1。

无论如何,我可以将线条的粗细更改为 10,但无需重新绘制线条吗?

im drawing a line from 0,0 to 100,100

im using this to modify the linestyle:

draw_line.graphics.lineStyle(1, 0xFF0000);

That line is now of 1 thickness.

Is there anyway i can change the thickness of the line to say 10, but without redrawing the line?

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

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

发布评论

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

评论(2

云淡月浅 2024-09-03 00:56:12

不,Flash播放器的工作方式是不可能的,你必须重新划线。或者使用某种可以自动为您重绘的库(例如 Flex 4 框架中的 Line 对象)

No, it is not possible with the way the flash player works, you must redraw the line. Or use some kind of library that automatically redraws it for you (for example a Line object in the Flex 4 Framework)

不知在何时 2024-09-03 00:56:12

试试这个:

draw_line.scaleX = 10;

不完全相同,但在某些情况下可能有效。

try this:

draw_line.scaleX = 10;

Not exactly the same, but could possibly work under certain circumstances.

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