Flex Gumbo 通过smooth属性设置BitmapGraphic对象平滑度的例子
发布时间:2016-12-28 来源:查字典编辑
摘要:复制代码代码如下:
复制代码 代码如下:
<?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>