PathGradientBrush 类

封装 Brush 对象,它通过渐变填充 GraphicsPath 对象的内部。无法继承此类。

**命名空间:**System.Drawing.Drawing2D
**程序集:**System.Drawing(在 system.drawing.dll 中)

语法

声明
Public NotInheritable Class PathGradientBrush
    Inherits Brush
用法
Dim instance As PathGradientBrush
public sealed class PathGradientBrush : Brush
public ref class PathGradientBrush sealed : public Brush
public final class PathGradientBrush extends Brush
public final class PathGradientBrush extends Brush

备注

彩色渐变是从路径的中点到路径的外边界边缘的平滑的彩色渐变。混合因子、位置和样式影响渐变起始和结束的位置,并且影响渐变变化的速度。

路径渐变画笔不遵循用于执行绘制操作的 Graphics 对象的 SmoothingMode 属性。无论是否用平滑模式,用 PathGradientBrush 对象填充的区域都以同样的方式呈现(带有锯齿)。

继承层次结构

System.Object
   System.MarshalByRefObject
     System.Drawing.Brush
      System.Drawing.Drawing2D.PathGradientBrush

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

PathGradientBrush 成员
System.Drawing.Drawing2D 命名空间