VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.Brush Class Referenceabstract

Represents a brush used to fill or stroke graphics elements. This could be a solid colour, or a more complicated gradient or pattern. More...

Inheritance diagram for VectSharp.Brush:

Public Member Functions

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 Brush (Colour colour)
 Implicitly converts a Colour into a SolidColourBrush. More...
 

Detailed Description

Represents a brush used to fill or stroke graphics elements. This could be a solid colour, or a more complicated gradient or pattern.

Definition at line 31 of file Brush.cs.

Member Function Documentation

◆ MultiplyOpacity()

abstract Brush VectSharp.Brush.MultiplyOpacity ( double  opacity)
pure 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.

Implemented in VectSharp.SolidColourBrush, VectSharp.LinearGradientBrush, and VectSharp.RadialGradientBrush.

◆ operator Brush()

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

Implicitly converts a Colour into a SolidColourBrush.

Parameters
colourThe Colour to use for the brush.

Definition at line 47 of file Brush.cs.


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