Click or drag to resize

Utils_ColorGetReadableColor Method

Returns a Color representing the color (either white or black) that is deemed the most readable against the given background.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static Color GetReadableColor(
	string cssColor
)

Parameters

cssColor
Type: SystemString
The background color css color value, e.g. "#F148E4"

Return Value

Type: Color
See Also