IXRGradientBrush::GetSpreadMethod (Windows Embedded CE 6.0)
1/6/2010
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.
.NET Framework Equivalent
System.Windows.Media.GradientBrush.SpreadMethod
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |