Table of Contents

Method IsDarkBackground

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

IsDarkBackground(Color, Color)

Returns true if backgroundColor is darker than foregroundColor.

public static bool IsDarkBackground(Color foregroundColor, Color backgroundColor)

Parameters

foregroundColor Color
backgroundColor Color

Returns

bool