IXRGradientBrush::GetSpreadMethod (Compact 2013)
3/28/2014
This method retrieves 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 GetSpreadMethod(
XRGradientSpreadMethod* pSpreadMethod
) = 0;
Parameters
- pSpreadMethod
[in] Pointer to an 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 StartPoint and EndPoint properties. A radial gradient-brush defines its gradient space with 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 |