Partilhar via


ImageThemingUtilities.IsLight(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 IsLight(System::Windows::Media::Color color);
public static bool IsLight (this System.Windows.Media.Color color);
static member IsLight : System.Windows.Media.Color -> bool
<Extension()>
Public Function IsLight (color As Color) As Boolean

Parameters

color
Color

The color to test

Returns

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

Applies to