ezLCD SDK Documentation

EZLCDColor Color to EZLCDColor Conversion 

 [This is preliminary documentation and subject to change.]

Explicit cast operator to convert a 24-bit System.Drawing.Color object to an 8-bit EZLCDColor object.

Note   System.Drawing.Color represents a 24-bit color. Some data may be lsot in the conversion to 8-bit.

[Visual Basic]
returnValue = EZLCDColor.(source)[C#]
public static explicit EZLCDColor operator operator (
   Color Color
)
[C++]
public: static EZLCDColor (
   Color Color
)
[JScript]
returnValue = EZLCDColor(source);

[Visual Basic] In Visual Basic, you can use the conversion operators defined by a type, but you cannot define your own.

[JScript] In JScript, you can use the conversion operators defined by a type, but you cannot define your own.

Arguments [Visual Basic, JScript]

source
The color to convert from.

Parameters [C#, C++]

source
The color to convert from.

Return Value

The result of the color conversion.

See Also

EZLCDColor Structure | EZLCD.Core Namespace