Table of Contents

Operator implicit operator

Namespace
Sccg
Assembly
Sccg.dll

implicit operator Color(string)

Initialize a new instance of Color with the specified hex code.

public static implicit operator Color(string color)

Parameters

color string

Returns

Color

Exceptions

ArgumentException

hexCode is invalid hex code style.

implicit operator Color((byte, byte, byte))

Initialize a new instance of Color with the specified RGB values.

public static implicit operator Color((byte, byte, byte) rgb)

Parameters

rgb (byte, byte, byte)

Returns

Color