×

RadialGradient Constructor (Point, EllipseRadius, GradientStop[])

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

Namespace: Nokia.Graphics.ImagingAssembly: Nokia.Graphics.Imaging (in Nokia.Graphics.Imaging.dll) Version: 255.255.255.255

Syntax

C#
public RadialGradient(
	Point centerPoint,
	EllipseRadius radius,
	GradientStop[] stops
)
Visual Basic
Public Sub New ( 
	centerPoint As Point,
	radius As EllipseRadius,
	stops As GradientStop()
)
Visual C++
public:
RadialGradient(
	[InAttribute] Point centerPoint, 
	[InAttribute] EllipseRadius^ radius, 
	[InAttribute] array<GradientStop>^ stops
)
Parameters
centerPoint
Type: Windows.Foundation..::..PointThe 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: Nokia.Graphics.Imaging..::..EllipseRadiusThe 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 a value for only one dimension and set the other to 0.

stops
Type: array<Nokia.Graphics.Imaging..::..GradientStop>[]()[][]The stops that define the gradient.

Last updated 19 June 2014

Back to top

×