Table of Contents

Method FillGradient

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

FillGradient(Rectangle, Color, Color, Point, Point)

When implemented by a class, fills the given rectangle with color that smoothly fades from one side to the other.

void FillGradient(Rectangle rect, Color beginColor, Color endColor, Point point1, Point point2)

Parameters

rect Rectangle

The rectangle object to fill.

beginColor Color

A Color structure that represents the starting color of the linear gradient.

endColor Color

A Color structure that represents the ending color of the linear gradient.

point1 Point

A Point structure that represents the start point of the linear gradient.

point2 Point

A Point structure that represents the end point of the linear gradient.

FillGradient(int, int, int, int, Color, Color, Point, Point)

When implemented by a class, fills the given rectangle with color that smoothly fades from one side to the other.

void FillGradient(int x, int y, int width, int height, Color beginColor, Color endColor, Point point1, Point point2)

Parameters

x int

X-coordinate of the upper-left corner of the rectangle.

y int

Y-coordinate of the upper-left corner of the rectangle.

width int

Width of the rectangle.

height int

Height of the rectangle.

beginColor Color

A Color structure that represents the starting color of the linear gradient.

endColor Color

A Color structure that represents the ending color of the linear gradient.

point1 Point

A Point structure that represents the start point of the linear gradient.

point2 Point

A Point structure that represents the end point of the linear gradient.