LinearGradientBrush的使用
来源:互联网 发布:淘宝客的文案 编辑:程序博客网 时间:2024/05/17 08:55
LinearGradientBrush是倾斜的画笔
通过GradientStop来设置有几个颜色点,GradientStop有Color Offset两个属性,color 是设置这个点的颜色的,Offset是设置位移的。这个位移是相对的,通过LinearGradientBrush 的StartPoint, EndPoint来设置总的长度。
例如
<Rectangle Width="200" Height="100">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="Yellow" Offset="0.0" />
<GradientStop Color="Red" Offset="0.25" />
<GradientStop Color="Blue" Offset="0.75" />
<GradientStop Color="LimeGreen" Offset="1.0" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
2.
SolidColorBrush是实心的画刷,如
<Rectangle Width="100" Height="100">
<Rectangle.Fill>
<SolidColorBrush Color="Red" />
</Rectangle.Fill>
</Rectangle>
将以红色填充这个矩形。
- LinearGradientBrush的使用
- LinearGradientBrush 线性渐变画刷的使用
- 使用LinearGradientBrush类
- 通过双缓冲解决LinearGradientBrush的抗锯齿BUG
- 35.wpf程序设计 可以修改的LinearGradientBrush对象
- 一点一滴掌握WPF应用系列 - 画刷使用(1):SolidColorBrush、LinearGradientBrush、RadialGradientBrush
- 渐变颜色LinearGradientBrush
- WPF中的LinearGradientBrush
- LinearGradientBrush 类:渐变绘图
- LinearGradientBrush 线性渐变笔刷
- c#线性渐变画刷LinearGradientBrush
- GDI+ for VCL基础 -- 画刷之LinearGradientBrush
- A Dialog For Brush Configure(SolidColorBrush,LinearGradientBrush,RadioGradientBrush)
- windows phone 了解LinearGradientBrush类和RadialGradienBrush类(11)
- LinearGradientBrush类.看了老半天了...不懂怎么转
- LinearGradientBrush 构造函数 (Rectangle, Color, Color, Single, Boolean)
- 稳扎稳打Silverlight(9) - 2.0画笔之SolidColorBrush, ImageBrush, VideoBrush, LinearGradientBrush, RadialGradientBrush
- GUID使用的使用
- 不倒翁
- 如何生成Detours.lib——Detours的使用准备
- 我与程序之缘
- 1.5 IL和验证
- ORACLE 11G HOW TO FIX ORA-01017: invalid username /password;logon denied
- LinearGradientBrush的使用
- SQL SERVER分页的一般写法
- 关于使用 EnumWindows 枚举应用程序窗口的技巧(转)
- 如何在weblogic服务器中发布项目
- 大学英语B
- 高校网络信息化安全
- Windows/linux 下配置php调用java类配置
- hp 6531s安装xp蓝屏的解决
- C# 编码好习惯