ImageThemingUtilities.IsDark(Color) Method

Definition

Indicates whether the given color is "dark", based on luminosity and how the color contrasts with black/white.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsDark(System::Windows::Media::Color color);
public static bool IsDark (this System.Windows.Media.Color color);
static member IsDark : System.Windows.Media.Color -> bool
<Extension()>
Public Function IsDark (color As Color) As Boolean

Parameters

color
Color

The color to test

Returns

True if the color is dark, false if the color is light.

Applies to