flex填充图形,渐变
2013-06-03 15:09
204 查看
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
</fx:Declarations>
<s:Group width="100%" height="100%">
<s:Graphic>
<s:Rect width="200" height="200">
<s:stroke>
<s:Stroke weight="2" color="red"/>
</s:stroke>
<s:fill>
<s:RadialGradient>
<s:entries>
<s:GradientEntry color="0x0056FF" ratio="0" alpha="0.5"/>
<s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>
<s:GradientEntry color="0x0ECEC21" ratio="0.66" alpha="0.5"/>
</s:entries>
</s:RadialGradient>
</s:fill>
</s:Rect>
</s:Graphic>
</s:Group>
<s:Group width="100%" height="100%">
<s:Graphic>
</s:Graphic>
<s:Rect x="280" y="4" width="200" height="200">
<s:stroke>
<s:Stroke weight="2" color="red"/>
</s:stroke>
<s:fill>
<s:LinearGradient>
<s:entries>
<s:GradientEntry color="0x0056FF" ratio="0" alpha="0.5"/>
<s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>
<s:GradientEntry color="0x0ECEC21" ratio="0.66" alpha="0.5"/>
</s:entries>
</s:LinearGradient>
</s:fill>
</s:Rect>
</s:Group>
</s:Application>
相关文章推荐
- [Web Chart系列之五] 3. 实战draw2d 之图形填充色(纯色 or 渐变)
- [Web Chart系列之五] 3. 实战draw2d 之图形填充色(纯色 or 渐变)
- Qt之图形(渐变填充)
- 详述canvas(三)—绘制图形/填充和渐变
- Qt之图形(渐变填充)
- flex 容器填充渐变的背景颜色
- 详述canvas(三)—绘制图形/填充和渐变
- 在Flex中设计图形坐标动画插值的思路
- HTML5 Canvas 开发 绘图方法整理 【十、Canvas渐变、图形渐变&&文字渐变】
- Silverlight开发历程—(绘制放射渐变图形)
- html 绘图渐变和图片填充
- 绘制系统(绘制系统简介,画笔和画刷,渐变系统,坐标系统,绘制文字和图片,图形视图框架)
- 渐变图形---音频条形图
- c#使用Region对图形区域构造和填充
- SVG颜色、渐变和填充
- VISIO,不规则封闭图形填充方法
- [Windows图形编程]种子填充算法
- flex学习笔记 皮肤(三)--关于填充的学习
- Delphi Canvas填充区域图形
- Flex中如何用backgroundDisabledColor样式,自定义TextInput控件在无效状态下填充颜色