System::Drawing::Drawing2D::PathGradientBrush 类

PathGradientBrush class

表示一种刷子,可使用渐变填充 GraphicsPath 对象的内部。此类的对象只能通过 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class PathGradientBrush : public System::Drawing::Brush

方法

方法描述
Clone() override创建当前对象的副本。
get_Blend() const未实现。
get_CenterColor() const返回当前对象填充路径中心的颜色。
get_CenterPoint() const获取渐变的中心点。
get_FocusScales() const获取渐变衰减的焦点。
get_InterpolationColors() const返回定义多颜色线性渐变的值。
get_Rectangle()未实现。
get_SurroundColors() const返回对应于此 PathGradientBrush 填充路径中各点的颜色。
get_Transform() const返回一个 Matrix 对象的副本,该对象指定当前对象所表示的画刷的几何变换。
get_WrapMode() const返回包装模式。
MultiplyTransform(const SharedPtr<Matrix>&, MatrixOrder)将当前对象的变换矩阵乘以指定的矩阵。
PathGradientBrush(const ArrayPtr<PointF>&, WrapMode)RTTI 信息。
PathGradientBrush(const ArrayPtr<Point>&, WrapMode)构造一个新的 PathGradientBrush 类实例。
PathGradientBrush(const SharedPtr<GraphicsPath>&)构造一个新的 PathGradientBrush 类实例。
ResetTransform()重置当前对象的变换矩阵,使其成为单位矩阵。
RotateTransform(float, Drawing2D::MatrixOrder)按指定顺序以指定角度旋转局部几何变换。
ScaleTransform(float, float, Drawing2D::MatrixOrder)按指定顺序以指定因子缩放局部几何变换。
set_Blend(const SharedPtr<Blend>&)设置一个混合,以指定此画笔的基色因子和位置。
set_CenterColor(Color)设置当前对象填充路径中心的颜色。
set_CenterPoint(const PointF&)设置渐变的中心点。
set_FocusScales(const PointF&)设置渐变衰减的焦点。
set_InterpolationColors(const SharedPtr<ColorBlend>&)设置定义多颜色线性渐变的值。
set_SurroundColors(const ArrayPtr<Color>&)设置与此 PathGradientBrush 填充的路径中的点对应的颜色。
set_Transform(const SharedPtr<Matrix>&)设置一个 Matrix 对象,指定当前对象所表示的画笔的几何变换。
set_WrapMode(WrapMode)设置包装模式。
SetBlendTriangularShape(float, float)未实现。
SetSigmaBellShape(float, float)未实现。
TranslateTransform(float, float, Drawing2D::MatrixOrder)按指定顺序以指定的尺寸平移局部几何变换。

另见