Table of Contents

Class Brush

Defines brush settings and properties for drawing.

[Serializable]
public class Brush
Inheritance
Brush
Inherited Members

Fields

AntiAlias

public bool AntiAlias

Field Value

bool

Color

public Color Color

Field Value

Color

Hardness

public float Hardness

Field Value

float

Jitter

public float Jitter

Field Value

float

MinPressureOpacity

public float MinPressureOpacity

Field Value

float

MinPressureSize

public float MinPressureSize

Field Value

float

Name

public string Name

Field Value

string

Opacity

public float Opacity

Field Value

float

Scatter

public float Scatter

Field Value

float

Size

public int Size

Field Value

int

Spacing

public float Spacing

Field Value

float

Type

public Brush.BrushType Type

Field Value

Brush.BrushType

UsePressureForOpacity

public bool UsePressureForOpacity

Field Value

bool

UsePressureForSize

public bool UsePressureForSize

Field Value

bool

Properties

Airbrush

Create an airbrush.

public static Brush Airbrush { get; }

Property Value

Brush

Default

Create a default brush.

public static Brush Default { get; }

Property Value

Brush

Eraser

Create an eraser brush.

public static Brush Eraser { get; }

Property Value

Brush

Pencil

Create a pencil brush.

public static Brush Pencil { get; }

Property Value

Brush

Soft

Create a soft brush.

public static Brush Soft { get; }

Property Value

Brush

Methods

Clone()

Clone this brush.

public Brush Clone()

Returns

Brush

GetAlphaAtDistance(float)

Get the brush alpha at a given distance from center (0-1).

public float GetAlphaAtDistance(float normalizedDistance)

Parameters

normalizedDistance float

Returns

float

GetEffectiveOpacity(float)

Get the effective opacity based on pressure.

public float GetEffectiveOpacity(float pressure)

Parameters

pressure float

Returns

float

GetEffectiveSize(float)

Get the effective size based on pressure.

public int GetEffectiveSize(float pressure)

Parameters

pressure float

Returns

int