VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.RadialGradientBrush Class Reference

Represents a brush painting with a radial gradient. More...

Inheritance diagram for VectSharp.RadialGradientBrush:

Public Member Functions

 RadialGradientBrush (Point focalPoint, Point centre, double radius, params GradientStop[] gradientStops)
 Creates a new RadialGradientBrush with the specified focal point, centre, radius and gradient stops. More...
 
 RadialGradientBrush (Point focalPoint, Point centre, double radius, IEnumerable< GradientStop > gradientStops)
 Creates a new RadialGradientBrush with the specified focal point, centre, radius and gradient stops. More...
 
override Brush MultiplyOpacity (double opacity)
 Returns a brush corresponding the current instance, with the specified opacity multiplication applied.
 

Properties

Point FocalPoint [get]
 The focal point of the gradient (i.e. the point within the circle where the gradient starts). More...
 
Point Centre [get]
 Represents the centre of the gradient. More...
 
double Radius [get]
 The radius of the gradient. More...
 
- Properties inherited from VectSharp.GradientBrush
GradientStops GradientStops [get]
 The colour stops in the gradient. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from VectSharp.Brush
static implicit operator Brush (Colour colour)
 Implicitly converts a Colour into a SolidColourBrush. More...
 

Detailed Description

Represents a brush painting with a radial gradient.

Definition at line 367 of file Brush.cs.

Constructor & Destructor Documentation

◆ RadialGradientBrush() [1/2]

VectSharp.RadialGradientBrush.RadialGradientBrush ( Point  focalPoint,
Point  centre,
double  radius,
params GradientStop[]  gradientStops 
)

Creates a new RadialGradientBrush with the specified focal point, centre, radius and gradient stops.

Parameters
focalPointThe focal point of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
centreThe centre of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
radiusThe radius of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
gradientStopsThe colour stops in the gradient.

Definition at line 391 of file Brush.cs.

◆ RadialGradientBrush() [2/2]

VectSharp.RadialGradientBrush.RadialGradientBrush ( Point  focalPoint,
Point  centre,
double  radius,
IEnumerable< GradientStop gradientStops 
)

Creates a new RadialGradientBrush with the specified focal point, centre, radius and gradient stops.

Parameters
focalPointThe focal point of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
centreThe centre of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
radiusThe radius of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
gradientStopsThe colour stops in the gradient.

Definition at line 430 of file Brush.cs.

Property Documentation

◆ Centre

Point VectSharp.RadialGradientBrush.Centre
get

Represents the centre of the gradient.

Definition at line 377 of file Brush.cs.

◆ FocalPoint

Point VectSharp.RadialGradientBrush.FocalPoint
get

The focal point of the gradient (i.e. the point within the circle where the gradient starts).

Definition at line 372 of file Brush.cs.

◆ Radius

double VectSharp.RadialGradientBrush.Radius
get

The radius of the gradient.

Definition at line 382 of file Brush.cs.


The documentation for this class was generated from the following file: