Method FillGradient
FillGradient(Rectangle, Color, Color, Point, Point)
Fills the given rectangle with color that smoothly fades from one side to the other.
public virtual void FillGradient(Rectangle rect, Color beginColor, Color endColor, Point point1, Point point2)
Parameters
rect
RectangleThe rectangle object to fill.
beginColor
ColorA Color structure that represents the starting color of the linear gradient.
endColor
ColorA Color structure that represents the ending color of the linear gradient.
point1
PointA Point structure that represents the start point of the linear gradient.
point2
PointA Point structure that represents the end point of the linear gradient.
FillGradient(int, int, int, int, Color, Color, Point, Point)
Fills the given rectangle with color that smoothly fades from one side to the other.
public virtual void FillGradient(int x, int y, int width, int height, Color beginColor, Color endColor, Point point1, Point point2)
Parameters
x
intX-coordinate of the upper-left corner of the rectangle.
y
intY-coordinate of the upper-left corner of the rectangle.
width
intWidth of the rectangle.
height
intHeight of the rectangle.
beginColor
ColorA Color structure that represents the starting color of the linear gradient.
endColor
ColorA Color structure that represents the ending color of the linear gradient.
point1
PointA Point structure that represents the start point of the linear gradient.
point2
PointA Point structure that represents the end point of the linear gradient.