Partager via


IXRRadialGradientBrush::SetRadiusY (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetRadiusY(
    float RadiusY
) = 0;

Parameters

  • RadiusY
    [in] A float value that indicates the new vertical 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, RadiusY should be supplied as a float value in the coordinate system.

.NET Framework Equivalent

System.Windows.Media.RadialGradientBrush.RadiusY

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRRadialGradientBrush
IXRRadialGradientBrush::GetRadiusY