Share via


IXRRadialGradientBrush::SetCenter (Compact 2013)

3/28/2014

This method sets the center of the outer ellipse of this radial gradient.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetCenter(
    XRPoint* pCenter
) = 0;

Parameters

  • pCenter
    [in] Pointer to an XRPoint structure that describes the new 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 and GradientOrigin are "logical points." Logical points have values between 0 and 1 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

See Also

Reference

IXRRadialGradientBrush
IXRRadialGradientBrush::GetCenter