RadialGradient Members

The RadialGradient type exposes the following members.

  Name Description
Public method RadialGradient()
Creates and initializes a new radial gradient with default values.
Public method RadialGradient(Point, EllipseRadius)
Creates and initializes a new radial gradient, with the specified center point and radius.
Public method RadialGradient(Point, EllipseRadius, array<GradientStop>)
Creates and initializes a new radial gradient, with the specified center point, radius, and stops.

  Name Description
Public method Close

  Name Description
Public property CenterPoint
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).

Public property 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 a value for only one dimension and set the other to 0.

Public property Stops
List of GradientStop defining the color changes within the gradient.
Show: