System.Drawing.Drawing2D.LinearGradientBrush brush = new Sys
来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/06/30 20:51:44
System.Drawing.Drawing2D.LinearGradientBrush brush = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(0,0,image.Width,image.Height),Color.Black,Color.DarkRed,1.2f,true);
LinearGradientBrush 构造函数 (Rectangle, Color, Color, Single, Boolean)
根据矩形、起始颜色和结束颜色以及方向角度,创建 LinearGradientBrush 类的新实例.
public LinearGradientBrush(
\x09Rectangle rect,
\x09Color color1,
\x09Color color2,
\x09float angle,
\x09bool isAngleScaleable
)
参数
rect
类型:System.Drawing.Rectangle
一个 Rectangle 结构,它指定线性渐变的界限.
color1
类型:System.Drawing.Color
表示渐变起始色的 Color 结构.
color2
类型:System.Drawing.Color
表示渐变结束色的 Color 结构.
angle
类型:System.Single
渐变方向线的角度(从 X 轴以顺时针角度计算).
isAngleScaleable
类型:System.Boolean
设置为 true,指定角度受与此 LinearGradientBrush 关联的变换所影响;否则为 false.
备注
与方向线垂直的任何一条线上的所有点为同一颜色.
起始线与方向线垂直,并经过矩形的一个角. 起始线上的所有点均为起始颜色. 结束线与方向线垂直,并经过矩形的一个角. 结束线上的所有点均为结束颜色.
方向线的角度决定起始线和结束线经过的角. 例如,如果该角度介于 0 和 90 度之间,则起始线经过左上角,结束线经过右下角.
再问: 谢谢!我是一个初学者,那请问关于一些函数的具体用法可以通过什么书籍查到
再答: 一些函数的具体用法??? 多到图书馆找找,尤其是多看,多会,多操作,自然而然就回来~~~ 有时间多在 C#的官网--MSDN上看看人家是怎样写代码的~~~~~ 多到图书馆找书看~~~~
根据矩形、起始颜色和结束颜色以及方向角度,创建 LinearGradientBrush 类的新实例.
public LinearGradientBrush(
\x09Rectangle rect,
\x09Color color1,
\x09Color color2,
\x09float angle,
\x09bool isAngleScaleable
)
参数
rect
类型:System.Drawing.Rectangle
一个 Rectangle 结构,它指定线性渐变的界限.
color1
类型:System.Drawing.Color
表示渐变起始色的 Color 结构.
color2
类型:System.Drawing.Color
表示渐变结束色的 Color 结构.
angle
类型:System.Single
渐变方向线的角度(从 X 轴以顺时针角度计算).
isAngleScaleable
类型:System.Boolean
设置为 true,指定角度受与此 LinearGradientBrush 关联的变换所影响;否则为 false.
备注
与方向线垂直的任何一条线上的所有点为同一颜色.
起始线与方向线垂直,并经过矩形的一个角. 起始线上的所有点均为起始颜色. 结束线与方向线垂直,并经过矩形的一个角. 结束线上的所有点均为结束颜色.
方向线的角度决定起始线和结束线经过的角. 例如,如果该角度介于 0 和 90 度之间,则起始线经过左上角,结束线经过右下角.
再问: 谢谢!我是一个初学者,那请问关于一些函数的具体用法可以通过什么书籍查到
再答: 一些函数的具体用法??? 多到图书馆找找,尤其是多看,多会,多操作,自然而然就回来~~~ 有时间多在 C#的官网--MSDN上看看人家是怎样写代码的~~~~~ 多到图书馆找书看~~~~
System.DateTime startTime = new System.DateTime(1970, 1, 1);
英语翻译1,:Copy to svcrypt.dll,syczpia.sys ---->...:\win.\system
在C# 中要用System.Drawing 为什么要在引用里加using System.Drawing 啊?
System.Data.DataTable dt = new System.Data.DataTable();请IT达人
System.Random random = new Random(~unchecked((int)DateTime.N
InputStreamReader in=new InputStreamReader(System.in) 与Buffe
求翻译:The origin of the complement system,one of the major sys
a new system of elections 和 a radio broadcaating system
Scanner scanner = new Scanner(System.in); int name = input.n
英语翻译请问The Sales Department will enter new authors to the sys
drawing
drawing New technological ventures are awaiting on the drawi