Shows how to fill a line , an ellipse , and a rectangle with a horizontal linear gradient brush 显示如何使用水平线性渐变画笔填充线条、椭圆和矩形。
All linear gradients are defined along a line specified either by the width of a rectangle or by two points 所有渐变都是沿由矩形的宽度或两个点指定的直线定义的。
A linear gradient changes color as you move horizontally , vertically , or parallel to a specified slanted line 当水平地、垂直地或平行一指定的斜线移动到时,线性渐变改变颜色。
The following illustration shows a rectangle filled with a linear gradient brush and an ellipse filled with a path gradient brush 下面的插图显示用线性渐变画笔填充矩形,用路径渐变画笔填充椭圆。
Creates a linear gradient with a center color and a linear falloff to a single color on both ends Lineargradientbrush . setblendtriangularshape方法创建一个从中心色向两端单个颜色线性过渡的线性渐变过程。