Class GradientFill
Implementation of IFill that uses a color gradient (including radial, diagonal etc.).
public class GradientFill : IFill
- Inheritance
-
GradientFill
- Implements
- Inherited Members
Constructors
- GradientFill(Rectangle, Gradient, GradientDirection)
Creates a new instance of the GradientFill class that can return color for any point in the given
area
using the providedgradient
anddirection
.
Methods
- GetColor(Point)
Returns the color to use for the given
point
or Black if it lies outside the prepared gradient area (see constructor).