Flex Gumbo中如何通过smooth属性设置BitmapGraphic对象平滑度的例子
By Minidxer | June 8, 2009
接下来的例子演示了Flex Gumbo中如何通过smooth属性,设置BitmapGraphic对象平滑度。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?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>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
BitmapGraphic, Gumbo |
No Comments » |
1,098 views
Tags: BitmapGraphic, Gumbo, rotation, smooth