【问题标题】:Flex : Draw ellipse on Image?Flex:在图像上绘制椭圆?
【发布时间】:2013-10-01 14:33:05
【问题描述】:

我有一个Image 对象,我想在它上面画一个椭圆。

我试过了:

imageObj.graphics.beginFill( 0x0000FF, 0.5 );
imageObj.graphics.drawEllipse( position.x, position.y, 10, 10 );
imageObj.graphics.endFill();

但是,它根本没有绘制任何东西。

如何在Image 对象上绘制图形基元?

【问题讨论】:

标签: apache-flex actionscript-3


【解决方案1】:

你不能直接在图像上绘制椭圆,你需要在 UIComponent 上绘制。

以下链接可能对您有所帮助:

http://groups.google.com/group/macromedia.flex.flex_builder/browse_thread/thread/bbcfc4e3e0a2e133

http://www.axelscript.com/2008/06/11/drawing-in-flex-using-the-uicomponent/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多