Table of Contents

Class Paint

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

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.

public abstract class Paint : ICloneable
Inheritance
Paint
Implements
Derived
Inherited Members

Remarks

Paints are immutable and must not be modified after construction.

Methods

Clone()

Creates a new Paint that's a copy of this Paint.

public virtual object Clone()

Returns

object

CloneProtected(Paint)

Copies properties from this Paint to the given Paint.

public virtual void CloneProtected(Paint p)

Parameters

p Paint

the Paint to copy properties to

Darken(double, ColorSpace)

Darkens colors, called by Darken(double, ColorSpace).

public abstract Paint Darken(double fraction, ColorSpace mode)

Parameters

fraction double
mode ColorSpace

Returns

Paint

Lighten(double, ColorSpace)

Lightens colors, called by Lighten(double, ColorSpace).

public abstract Paint Lighten(double fraction, ColorSpace mode)

Parameters

fraction double
mode ColorSpace

Returns

Paint

ToString()

Returns a string that represents the current Paint.

public override string ToString()

Returns

string

A string that represents the current Paint.