首页
诗词
字典
板报
句子
名言
友答
励志
学校
网站地图
图形图像
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
读书人精选
热点排行
使用xml及java代码混同的方式来设置图形
UIImage 图片处理:截图,缩放,设定大小
html5 作图图形
解决linux系统启动之:root用户经过验证但
图像瓜分之(六)交叉视觉皮质模型(ICM
LIRe 源代码分析 六:检索(ImageSearch
给UIImageView添手势
Java的jfreechat 图形表格例子
念交几个美工朋友,有意者请进
[google面试CTCI] 1-6.图像旋转有关问题