Operator implicit operator
implicit operator ColorStruct(SKColor)
Converts the specified SKColor to a ColorStruct.
public static implicit operator ColorStruct(SKColor color)
Parameters
color
SKColor
Returns
implicit operator SKColor(ColorStruct)
Converts the specified SKColor to a ColorStruct.
public static implicit operator SKColor(ColorStruct color)
Parameters
color
ColorStruct
Returns
implicit operator ColorStruct(int)
Converts the specified int to a ColorStruct.
public static implicit operator ColorStruct(int d)
Parameters
d
int
Returns
implicit operator ColorStruct(uint)
Converts the specified uint to a ColorStruct.
public static implicit operator ColorStruct(uint d)
Parameters
d
uint
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 convertion 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 convertion 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.