Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我画了一条从 0,0 到 100,100 的线
我用它来修改线型:
draw_line.graphics.lineStyle(1, 0xFF0000);
这条线现在是 1 粗细。
无论如何我可以将线条的粗细更改为 10,但无需重新绘制线条?
不,flash 播放器的工作方式是不可能的,您必须重新画线。或者使用某种自动为您重绘它的库(例如 Flex 4 框架中的 Line 对象)
试试这个:
draw_line.scaleX = 10;
不完全相同,但可能在某些情况下工作。