Operator implicit operator
implicit operator ColorStruct(SKColor)
Converts the specified SKColor to a ColorStruct.
public static implicit operator ColorStruct(SKColor color)
Parameters
colorSKColor
Returns
implicit operator SKColor(ColorStruct)
Converts the specified SKColor to a ColorStruct.
public static implicit operator SKColor(ColorStruct color)
Parameters
colorColorStruct
Returns
implicit operator ColorStruct(int)
Converts the specified int to a ColorStruct.
public static implicit operator ColorStruct(int d)
Parameters
dint
Returns
implicit operator ColorStruct(uint)
Converts the specified uint to a ColorStruct.
public static implicit operator ColorStruct(uint d)
Parameters
duint
Returns
implicit operator uint(ColorStruct)
Converts the specified ColorStruct to a uint.
public static implicit operator uint(ColorStruct d)
Parameters
Returns
implicit operator ColorStruct((byte Red, byte Green, byte Blue))
Implicit operator conversion from tuple with three byte values to Color. Tuple values define RGB of the color.
public static implicit operator ColorStruct((byte Red, byte Green, byte Blue) d)
Parameters
Returns
Remarks
This operator uses FromRgb(byte, byte, byte) internally.
implicit operator ColorStruct((byte Alpha, byte Red, byte Green, byte Blue))
Implicit operator conversion from tuple with three byte values to Color. Tuple values define ARGB of the color.
public static implicit operator ColorStruct((byte Alpha, byte Red, byte Green, byte Blue) d)
Parameters
Returns
Remarks
This operator uses FromArgb(byte, byte, byte, byte) internally.