RadialGradient Constructor (Point, EllipseRadius)

Creates and initializes a new radial gradient, with the specified center point and radius.

Namespace: Lumia.Imaging
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255

Lumia.Imaging.RadialGradient = function(centerPoint, radius);

Parameters

centerPoint
Type: Windows.Foundation.Point
The center point of the gradient, to which a GradientStop with Offset equal to 0 would map.

Expressed in the unit coordinate space of the gradient image area, i.e., the top left corner of the gradient image is at (0.0), and the bottom right corner is at (1, 1).

radius
Type: Lumia.Imaging.EllipseRadius
The radius of the gradient. This is the distance from CenterPoint that a GradientStop with Offset equal to 1 would map to.

Expressed in the unit coordinate space of the gradient image area, i.e., the top left corner of the gradient image is at (0.0), and the bottom right corner is at (1, 1).

To create a circle specify value for only one dimension and set the other one to 0.

Lumia Imaging SDK

Supported in: 3.0, 2.0
Show: