New to Telerik Document ProcessingStart a free 30-day trial

Radial gradient that blends colors between two circles defined by centers and radii; use for spotlight or vignette effects.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class RadialGradient : Gradient, IEquatable<ColorBase>

Inheritance: objectColorBasePatternColorGradientRadialGradient

Implements: IEquatable<ColorBase>

Inherited Members Gradient.StartPointGradient.EndPointGradient.ExtendBeforeGradient.ExtendAfterGradient.BackgroundGradient.GradientStopsGradient.PositionColorBase.Equals(object)...

Constructors

Creates a radial gradient with the specified centers and radii.

C#
public RadialGradient(Point startPoint, Point endPoint, double startRadius, double endRadius)
Parameters:startPointPoint

The start point.

endPointPoint

The end point.

startRadiusdouble

The start radius.

endRadiusdouble

The end radius.

Methods

Compares this radial gradient with another color for value equality.

C#
public override bool Equals(ColorBase other)
Parameters:otherColorBase

The other color to compare.

Returns:

bool

True if both represent equivalent radial gradients; otherwise, false.

Overrides: Gradient.Equals(ColorBase)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: ColorBase.GetHashCode()

Properties

Gets or sets the radius of the outer circle where interpolation ends.

C#
public double EndRadius { get; set; }
Property Value:

End radius in user units.

Gets or sets the radius of the inner circle where interpolation starts.

C#
public double StartRadius { get; set; }
Property Value:

Start radius in user units.