VectSharp 2.5.0
A light library for C# vector graphics
Loading...
Searching...
No Matches
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.
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...
 

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...
 

Properties

Colour Colour [get]
 The colour of the brush. More...
 
double R [get]
 Red component of the colour. Range: [0, 1]. More...
 
double G [get]
 Green component of the colour. Range: [0, 1]. More...
 
double B [get]
 Blue component of the colour. Range: [0, 1]. More...
 
double A [get]
 Alpha component of the colour. Range: [0, 1]. 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

◆ MultiplyOpacity()

override Brush VectSharp.SolidColourBrush.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 91 of file Brush.cs.

◆ 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.

Property Documentation

◆ A

double VectSharp.SolidColourBrush.A
get

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

Definition at line 79 of file Brush.cs.

◆ B

double VectSharp.SolidColourBrush.B
get

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

Definition at line 74 of file Brush.cs.

◆ Colour

Colour VectSharp.SolidColourBrush.Colour
get

The colour of the brush.

Definition at line 59 of file Brush.cs.

◆ G

double VectSharp.SolidColourBrush.G
get

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

Definition at line 69 of file Brush.cs.

◆ R

double VectSharp.SolidColourBrush.R
get

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

Definition at line 64 of file Brush.cs.


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