flex 设置背景
来源:互联网 发布:bfgs算法matlab代码 编辑:程序博客网 时间:2024/05/22 03:42
flex 设置背景图片
<s:Group x="0" y="0" height="100%" width="100%">
<s:Rect x="0" y="0" height="100%" width="100%">
<s:fill>
<s:BitmapFill source="@Embed('../pic/001.jpg')"/>
</s:fill>
</s:Rect>
</s:Group>
已经测试,group相当于canvas,而后里面画一个矩形,在矩形里面用图片填充,也可以使用渐变色填充,如下:
<s:Rect alpha="0.5" x="0" y="0" width="100%" height="100%">
<s:fill>
<s:LinearGradient rotation="250">
<s:GradientEntry color="0x222222" ratio="0"/>
<s:GradientEntry color="0xdddddd" ratio="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
Flex 4中组件背景设置(填充方式)group为例子
以下以Group为例子讲述如何在Flex 4中填充背景颜色、图片:
1、图片填充方式:
<s:Group x="0" y="0" height="100%" width="100%">
<s:Rect x="0" y="0" height="100%" width="100%">
<s:fill>
<s:BitmapFill source="@Embed('../imges/myBg.jpg')"/>
</s:fill>
</s:Rect>
</s:Group>
2、渐变色填充方式:
<s:Rect alpha="0.5" x="0" y="0" width="100%" height="100%">
<s:fill>
<s:LinearGradient rotation="250">
<s:GradientEntry color="0x222222" ratio="0"/>
<s:GradientEntry color="0xdddddd" ratio="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
- flex 设置背景
- arcgis api for Flex 设置InfoSymbol背景
- Flex:Flex 给容器设置背景渐变(mx)
- Flex 设置容器背景的三种方法
- flex 弹出(PopupManager)背景遮罩设置
- Flex设置DataGrid单元格颜色以及表头背景颜色渐变
- Flex中如何将灰色背景设置为透明效果
- Flex 动态的设置表格行的背景颜色
- Flex 去除背景颜色
- flex修改titleWindow背景
- 背景设置
- 背景设置
- 设置背景
- 设置背景
- 背景设置
- Flex中如何利用swatchGridBackgroundColor样式设置ColorPicker的样本颜色网格背景颜色的例子。
- Flex Gumbo中如何通过contentBackgroundColor样式,设置TextInput内文本背景颜色
- Flex Gumbo中如何通过baseColor样式,设置FxHScrollBar背景颜色
- linux command Line and shell script bible(笔记三_权限/用户)
- emeditor只显示特定类型的文件
- Excel2010调出“开发工具”选项卡
- 【ios学习笔记】背景音乐循环播放
- ar技术序章-SDK介绍和选择
- flex 设置背景
- (1) - 基础学习
- 两种缓存Bitmap的方式
- Cocos2d-x学习笔记(九)实例——场景自动切换
- 嗑瓜子理论
- chromium 书签实现机制
- 【Windows7优化调整的10个技巧】
- Android 之 远程图片获取和本地缓存
- android导入sample中的项目