Share via


IXRRadialGradientBrush::SetRadiusX (Windows Embedded CE 6.0)

1/6/2010

This method sets the horizontal radius of the outer ellipse of this radial gradient.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRadiusX(
    float RadiusX
) = 0;

Parameters

  • RadiusX
    [in] A float value that indicates the new horizontal radius of the outer ellipse 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, RadiusX and RadiusY 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 value of 0.5 creates a circle that reaches the edge of the bounding box under this mapping mode.

If the mapping mode is set to XRBrushMappingMode_Absolute, RadiusX should be supplied as a float value in the coordinate system.

.NET Framework Equivalent

System.Windows.Media.RadialGradientBrush.RadiusX

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRRadialGradientBrush
IXRRadialGradientBrush::GetRadiusX