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


public sealed class PathGradientBrush : System.Drawing.Brush


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.


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