Table of Contents

Operator implicit operator

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

implicit operator BrushOrColor(Brush)

Implicitly converts a Brush to a BrushOrColor.

public static implicit operator BrushOrColor(Brush d)

Parameters

d Brush

The Brush to convert.

Returns

BrushOrColor

implicit operator BrushOrColor(Color)

Implicitly converts a Color to a BrushOrColor.

public static implicit operator BrushOrColor(Color d)

Parameters

d Color

The Color to convert.

Returns

BrushOrColor

implicit operator BrushOrColor((byte Red, byte Green, byte Blue))

Implicit operator conversion from tuple with three byte values to BrushOrColor. Tuple values define RGB of the color.

public static implicit operator BrushOrColor((byte Red, byte Green, byte Blue) d)

Parameters

d (byte Red, byte Green, byte Blue)

New color value specified as tuple with three byte values.

Returns

BrushOrColor

implicit operator BrushOrColor((byte Alpha, byte Red, byte Green, byte Blue))

Implicit operator conversion from tuple with four byte values to BrushOrColor. Tuple values define ARGB of the color.

public static implicit operator BrushOrColor((byte Alpha, byte Red, byte Green, byte Blue) d)

Parameters

d (byte Alpha, byte Red, byte Green, byte Blue)

New color value specified as tuple with four byte values.

Returns

BrushOrColor