Class Paint
This is the abstract base class for all paints. A Paint holds color information and describes how a Brush will draw the inside of a Shape or the stroke of a shape or a TextBlock or the background of any GraphObject.
Implements
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.Avalonia.dll
Syntax
public abstract class Paint : ICloneable
Remarks
Paints are immutable and must not be modified after construction.
Methods
Clone()
Creates a new Paint that's a copy of this Paint.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
object |
CloneProtected(Paint)
Copies properties from this Paint to the given Paint.
Declaration
public virtual void CloneProtected(Paint p)
Parameters
Type | Name | Description |
---|---|---|
Paint | p | the Paint to copy properties to |
Darken(double, ColorSpace)
Darkens colors, called by Darken(double, ColorSpace).
Declaration
public abstract Paint Darken(double fraction, ColorSpace mode)
Parameters
Type | Name | Description |
---|---|---|
double | fraction | |
ColorSpace | mode |
Returns
Type | Description |
---|---|
Paint |
Lighten(double, ColorSpace)
Lightens colors, called by Lighten(double, ColorSpace).
Declaration
public abstract Paint Lighten(double fraction, ColorSpace mode)
Parameters
Type | Name | Description |
---|---|---|
double | fraction | |
ColorSpace | mode |
Returns
Type | Description |
---|---|
Paint |
ToString()
Returns a string that represents the current Paint.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current Paint. |