This documentation is archived and is not being maintained.

PathGradientBrush Class

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

For a list of all members of this type, see PathGradientBrush Members.


[Visual Basic]
NotInheritable Public Class PathGradientBrush
   Inherits Brush
public sealed class PathGradientBrush : Brush
public __gc __sealed class PathGradientBrush : public Brush
public class PathGradientBrush extends Brush

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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 SmoothingMode property of the Graphics object used to do the drawing. Areas filled using a PathGradientBrush object are rendered the same way (aliased) regardless of the smoothing mode.


Namespace: System.Drawing.Drawing2D

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

PathGradientBrush Members | System.Drawing.Drawing2D Namespace