【发布时间】:2012-07-21 03:44:00
【问题描述】:
Flex 中有没有办法绘制<s:Ellipse> 并使用它来遮盖图像?这是我写的<s:Ellipse>:
<s:Ellipse id="imageFrame" width="150" height="150" rotation="325" top="50" left="50">
<s:stroke>
<s:LinearGradientStroke weight="5">
<s:GradientEntry color="0x000000"/>
<s:GradientEntry color="0xFFFFFF"/>
<s:GradientEntry color="0x000000"/>
</s:LinearGradientStroke>
</s:stroke>
</s:Ellipse>
...看起来像这样:
我想使用<s:Image> 组件加载图像,将其放置在环内,并遮盖图像,以便只有中心的孔显示图像,就像相框一样。
可以做到吗,还是因为椭圆中心的“洞”只是不可见的填充而无法做到?
感谢您的宝贵时间。
【问题讨论】:
标签: actionscript-3 flash apache-flex actionscript flex4