Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.04 KB

compositionradialgradientbrush_ellipseradius.md

File metadata and controls

30 lines (18 loc) · 1.04 KB
-api-id -api-type
P:Microsoft.UI.Composition.CompositionRadialGradientBrush.EllipseRadius
winrt property

Microsoft.UI.Composition.CompositionRadialGradientBrush.EllipseRadius

-description

Gets or sets the radii of the ellipse that contains the gradient.

-property-value

The radii of the ellipse that contains the gradient. The default is a Vector2 with values (0.5, 0.5).

-remarks

This property describes the radii of the ellipse that the radial gradient is drawn in. The first value of the Vector2 describes the x-axis radius and the second value describes the y-axis radius.

When MappingMode is set to Relative, each radius is a value from 0.0 to 1.0, which represents a percentage of the size of the object being painted.

When MappingMode is set to Absolute, the numbers change to be pixels rather than a ratio, and are relative to the size of the brush.

-see-also

-examples