CompositionRadialGradientBrush.EllipseRadius Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the radii of the ellipse that contains the gradient.
public:
property float2 EllipseRadius { float2 get(); void set(float2 value); };
float2 EllipseRadius();
void EllipseRadius(float2 value);
public Vector2 EllipseRadius { get; set; }
var vector2 = compositionRadialGradientBrush.ellipseRadius;
compositionRadialGradientBrush.ellipseRadius = vector2;
Public Property EllipseRadius As Vector2
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.