IXRGradientBrush::SetSpreadMethod (Compact 2013)
3/28/2014
This method sets the spread method used to determine how a gradient is drawn when it starts or ends inside the bounds of the target object.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetSpreadMethod(
XRGradientSpreadMethod SpreadMethod
) = 0;
Parameters
- SpreadMethod
[in] XRGradientSpreadMethod enumerated type that describes the kind of spread method used to paint the gradient.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
The following illustration shows the available spread methods and their effect on IXRLinearGradientBrush and IXRRadialGradientBrush. The red line indicates the gradient space. A linear gradient-brush defines its gradient space with its StartPoint and EndPoint properties. A radial gradient-brush defines its gradient space with its Center, RadiusX, and RadiusY properties.
Spread method |
Linear gradient example |
Radial gradient example |
---|---|---|
Pad |
||
Reflect |
||
Repeat |
.NET Framework Equivalent
System.Windows.Media.GradientBrush.SpreadMethod
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |