System.Drawing.Drawing2D.PathGradientBrush Class

Encapsulates a System.Drawing.Brush object that fills the interior of a System.Drawing.Drawing2D.GraphicsPath object with a gradient. This class cannot be inherited.

See Also: PathGradientBrush Members

Syntax

public sealed class PathGradientBrush : System.Drawing.Brush

Remarks

The color gradient is a smooth shading of colors from the center point of the path to the outside boundary edge of the path. Blend factors, positions, and style affect where the gradient starts and ends, and how fast it changes shade.

Path gradient brushes do not obey the System.Drawing.Graphics.SmoothingMode property of the System.Drawing.Graphics object used to do the drawing. Areas filled using a System.Drawing.Drawing2D.PathGradientBrush object are rendered the same way (aliased) regardless of the smoothing mode.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0