IXRRadialGradientBrush::GetCenter (Windows Embedded CE 6.0)
1/6/2010
This method retrieves the center of the outer ellipse of this radial gradient.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetCenter(
XRPoint* pCenter
) = 0;
Parameters
- pCenter
[out] Pointer to an XRPoint structure that describes the two-dimensional center of this radial gradient.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
When the inherited method IXRGradientBrush::GetMappingMode indicates that the mapping mode is set to XRBrushMappingMode_RelativeToBoundingBox, Center (that is, the value in pCenter) and GradientOrigin are "logical points." Logical points have values between 0 and 1 and are mapped against the total size of the resulting bounding box where this brush is applied. A point value of 0.5 sets the center and gradient origin to the logical center of the bounding box.
If the mapping mode is set to XRBrushMappingMode_Absolute, Center should be supplied as a true point value in the coordinate system.
.NET Framework Equivalent
System.Windows.Media.RadialGradientBrush.Center
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |