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

Represents a brush painting with a single solid colour. More...

Inheritance diagram for VectSharp.SolidColourBrush:

Public Member Functions

 SolidColourBrush (Colour colour)
 Creates a new SolidColourBrush with the specified colour . More...
 
override Brush MultiplyOpacity (double opacity)
 Returns a brush corresponding the current instance, with the specified opacity multiplication applied.
 

Static Public Member Functions

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

Public Attributes

double R => Colour.R
 Red component of the colour. Range: [0, 1]. More...
 
double G => Colour.G
 Green component of the colour. Range: [0, 1]. More...
 
double B => Colour.B
 Blue component of the colour. Range: [0, 1]. More...
 
double A => Colour.A
 Alpha component of the colour. Range: [0, 1]. More...
 

Properties

Colour Colour [get]
 The colour of the brush. More...
 

Detailed Description

Represents a brush painting with a single solid colour.

Definition at line 54 of file Brush.cs.

Constructor & Destructor Documentation

◆ SolidColourBrush()

VectSharp.SolidColourBrush.SolidColourBrush ( Colour  colour)

Creates a new SolidColourBrush with the specified colour .

Parameters
colourThe Colour to use for the brush.

Definition at line 85 of file Brush.cs.

Member Function Documentation

◆ operator SolidColourBrush()

static implicit VectSharp.SolidColourBrush.operator SolidColourBrush ( Colour  colour)
static

Implicitly converts a Colour into a SolidColourBrush.

Parameters
colourThe Colour to use for the brush.

Definition at line 100 of file Brush.cs.

Member Data Documentation

◆ A

double VectSharp.SolidColourBrush.A => Colour.A

Alpha component of the colour. Range: [0, 1].

Definition at line 79 of file Brush.cs.

◆ B

double VectSharp.SolidColourBrush.B => Colour.B

Blue component of the colour. Range: [0, 1].

Definition at line 74 of file Brush.cs.

◆ G

double VectSharp.SolidColourBrush.G => Colour.G

Green component of the colour. Range: [0, 1].

Definition at line 69 of file Brush.cs.

◆ R

double VectSharp.SolidColourBrush.R => Colour.R

Red component of the colour. Range: [0, 1].

Definition at line 64 of file Brush.cs.

Property Documentation

◆ Colour

Colour VectSharp.SolidColourBrush.Colour
get

The colour of the brush.

Definition at line 59 of file Brush.cs.


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