PageAPI.CreateRadialGradientBrush

CreateRadialGradientBrush(List<XpsGradientStop>, PointF, PointF, float, float)

Creates a new radial gradient brush.

public XpsRadialGradientBrush CreateRadialGradientBrush(List<XpsGradientStop> gradientStops, 
    PointF center, PointF gradientOrigin, float radiusX, float radiusY)
ParameterTypeDescription
gradientStopsList`1The list of gradient stops.
centerPointFThe center point of the radial gradient (that is, the center of the ellipse).
gradientOriginPointFThe origin point of the radial gradient.
radiusXSingleThe radius in the x dimension of the ellipse which defines the radial gradient.
radiusYSingleThe radius in the y dimension of the ellipse which defines the radial gradient.

Return Value

New radial gradient brush.

See Also


CreateRadialGradientBrush(PointF, PointF, float, float)

Creates a new radial gradient brush.

public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, 
    float radiusX, float radiusY)
ParameterTypeDescription
centerPointFThe center point of the radial gradient (that is, the center of the ellipse).
gradientOriginPointFThe origin point of the radial gradient.
radiusXSingleThe radius in the x dimension of the ellipse which defines the radial gradient.
radiusYSingleThe radius in the y dimension of the ellipse which defines the radial gradient.

Return Value

New radial gradient brush.

See Also