实现倒角功能
功能实现:
--边框外缘,Canvas WIDTH,HEIGHT
边框遮照,WIDTH-1,HEIGHT-1, borderStyle="solid" cornerRadius="20"
示例:
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100">
<mx:Canvas id="i" width="99" height="99" borderStyle="solid" cornerRadius="20"/>
<mx:Canvas width="99" height="99" mask="{i}">
<mx:Image id="image" width="84" height="85" source="{data.path}"
horizontalCenter="0" verticalCenter="0" buttonMode="true"
ioError="mx.controls.Alert.show(event.toString())" />
<mx:Canvas width="99" height="99" backgroundImage="{thumbImgBorderClass}" />
</mx:Canvas>
<mx:Script>
<![CDATA[
[Bindable]
[Embed(source="assets/bg/thumbImgBorder.png")]
private var thumbImgBorderClass:Class;
]]>
</mx:Script>
</mx:Canvas>