GradientSpreadMethod 枚举

定义

指定如何在渐变画笔的渐变向量或空间外部绘制渐变。Specifies how to draw the gradient outside a gradient brush's gradient vector or space.

public enum class GradientSpreadMethod
public enum GradientSpreadMethod
type GradientSpreadMethod = 
Public Enum GradientSpreadMethod
继承
GradientSpreadMethod

字段

Pad 0

默认值。Default value. 渐变向量末端的颜色值填充剩余的空间。The color values at the ends of the gradient vector fill the remaining space.

Reflect 1

按相反方向重复渐变,直至充满空间。The gradient is repeated in the reverse direction until the space is filled.

Repeat 2

按原始方向重复渐变,直至充满空间。The gradient is repeated in the original direction until the space is filled.

注解

下图显示了可用的传播方法及其对LinearGradientBrushRadialGradientBrush的影响。The following illustration shows the available spread methods and their effect on LinearGradientBrush and RadialGradientBrush. 红线指示渐变空间。The red line indicates the gradient space. 使用其StartPoint和属性EndPoint定义LinearGradientBrush其渐变空间。A LinearGradientBrush defines its gradient space with its StartPoint and EndPoint properties. 定义其CenterRadiusX和属性RadiusY的渐变空间。 RadialGradientBrushA RadialGradientBrush defines its gradient space with its Center, RadiusX, and RadiusY properties.

不同的 GradientSpread 设置Different GradientSpread settings
渐变传播方法Gradient spread methods

适用于