Table of Contents

Operator implicit operator

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

implicit operator ColorStruct(SKColor)

Converts the specified SKColor to a ColorStruct.

public static implicit operator ColorStruct(SKColor color)

Parameters

color SKColor

Returns

ColorStruct

implicit operator SKColor(ColorStruct)

Converts the specified SKColor to a ColorStruct.

public static implicit operator SKColor(ColorStruct color)

Parameters

color ColorStruct

Returns

SKColor

implicit operator ColorStruct(uint)

Converts the specified uint to a ColorStruct.

public static implicit operator ColorStruct(uint d)

Parameters

d uint

Returns

ColorStruct

implicit operator uint(ColorStruct)

Converts the specified ColorStruct to a uint.

public static implicit operator uint(ColorStruct d)

Parameters

d ColorStruct

Returns

uint

implicit operator ColorStruct((byte, byte, byte))

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

public static implicit operator ColorStruct((byte, byte, byte) d)

Parameters

d (byte, byte, byte)

New color value.

Returns

ColorStruct

Remarks

This operator uses FromRgb(byte, byte, byte) internally.

implicit operator ColorStruct((byte, byte, byte, byte))

Implicit operator convertion from tuple with three byte values to Color. Tuple values define ARGB of the color.

public static implicit operator ColorStruct((byte, byte, byte, byte) d)

Parameters

d (byte, byte, byte, byte)

New color value.

Returns

ColorStruct

Remarks

This operator uses FromArgb(byte, byte, byte, byte) internally.