首页
诗词
字典
板报
句子
名言
友答
励志
学校
网站地图
图形图像
Photoshop
CorelDRAW
IIIustrator
InDesign
图形图像
Freehand
当前位置:
首页
>
教程频道
>
平面设计
>
图形图像
>
Silverlight 指路蜂二维图形库示例:颜色渐变
2012-07-22
Silverlight 引路蜂二维图形库示例:颜色渐变颜色渐变(Gradient)定义了颜色从一种颜色到另一种颜色的平滑过
Silverlight 引路蜂二维图形库示例:颜色渐变
颜色渐变(Gradient)定义了颜色从一种颜色到另一种颜色的平滑过渡,引路蜂二维图形库支持线性和圆形渐变
private void Gradients(){ /* The linear gradient color */ LinearGradientBrush brush1; /* The radial gradient color */ RadialGradientBrush brush2; int[] fractions = new[] { 13, 242 }; Color[] colors = new[] { new Color(0xffff6600, false), new Color(0xffffff66, false) }; brush1 = new LinearGradientBrush(50, 50, 150, 125, fractions, colors, Brush.NoCycle); fractions = new int[] { 13, 128, 255 }; colors = new[]{new Color(0xffff6600,false),new Color(0xffffff66,false), new Color(0xffff6600,false)}; brush2 = new RadialGradientBrush(90, 100, 50, fractions, colors); //Clear the canvas with white color. graphics2D.Clear(Color.White); graphics2D.FillRectangle(brush1, new Rectangle(10, 75, 120, 80)); Pen pen = new Pen(brush2, 8); graphics2D.DrawOval(pen, 20, 60, 100, 50);}
查看更多
下一篇
本文网址:
https://www.reader8.net/jiaocheng/20120722/2089141.html
读书人精选
热点排行
请教图片jpg编码用什么开源库?
【考题汇总】图像处理职位面试题汇总(2)
LIRe 源代码分析 六:检索(ImageSearch
新手!安装Qt5.2.0如何没有Qt Gui Appli
给UIImageView添手势
Ubuntu_ImageMagick_安装和有关问题
OpenCV_基于局部自适应阈值的图像2值化
[OpenCV]实验1.1:图像加载、展示
android自定义1圆角ImageView
作图图形