实现代码如下:

<?xml version="1.0" encoding="utf-8"?>
<Application name="BitmapGraphic_smooth_test"
xmlns="http://ns.adobe.com/mxml/2009"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">

<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="smooth:">
<CheckBox id="checkBox" />
</FormItem>
<FormItem label="rotation:">
<HSlider id="slider"
minimum="0"
maximum="360"
snapInterval="1"
tickInterval="15"
liveDragging="true" />
</FormItem>
</Form>
</ApplicationControlBar>

<Graphic>
<BitmapGraphic id="bitmapGraphic"
source="@Embed('assets/fx_appicon-tn.gif')"
rotation="{slider.value}"
smooth="{checkBox.selected}" />
</Graphic>

</Application>

以上就是【Flex Gumbo 通过smooth属性设置BitmapGraphic对象平滑度的例子】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论