VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
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.
Parameters
opacityThe value that will be used to multiply the opacity of the brush.
Returns
A brush corresponding the current instance, with the specified opacity multiplication applied.
More...
 
abstract Brush MultiplyOpacity (double opacity)
 Returns a brush corresponding the current instance, with the specified opacity multiplication applied. More...
 

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 416 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 440 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 479 of file Brush.cs.

Member Function Documentation

◆ MultiplyOpacity()

override Brush VectSharp.RadialGradientBrush.MultiplyOpacity ( double  opacity)
virtual

Returns a brush corresponding the current instance, with the specified opacity multiplication applied.

Parameters
opacityThe value that will be used to multiply the opacity of the brush.
Returns
A brush corresponding the current instance, with the specified opacity multiplication applied.

Implements VectSharp.Brush.

Definition at line 512 of file Brush.cs.

Property Documentation

◆ Centre

Point VectSharp.RadialGradientBrush.Centre
get

Represents the centre of the gradient.

Definition at line 426 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 421 of file Brush.cs.

◆ Radius

double VectSharp.RadialGradientBrush.Radius
get

The radius of the gradient.

Definition at line 431 of file Brush.cs.


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