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
rectRectangleThe rectangle object to fill.
beginColorColorA Color structure that represents the starting color of the linear gradient.
endColorColorA Color structure that represents the ending color of the linear gradient.
point1PointA Point structure that represents the start point of the linear gradient.
point2PointA 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
xintX-coordinate of the upper-left corner of the rectangle.
yintY-coordinate of the upper-left corner of the rectangle.
widthintWidth of the rectangle.
heightintHeight of the rectangle.
beginColorColorA Color structure that represents the starting color of the linear gradient.
endColorColorA Color structure that represents the ending color of the linear gradient.
point1PointA Point structure that represents the start point of the linear gradient.
point2PointA Point structure that represents the end point of the linear gradient.