ImageThemingUtilities.IsDark(Color) Methode

Definition

Gibt an, ob die angegebene Farbe "dunkel" oder genauer ist, ob die Helligkeit kleiner als 0,5 ist.

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

Parameter

color
Color

Die zu testende Farbe

Gibt zurück

Boolean

True, wenn die Farbe dunkel ist, false, wenn die Farbe hell ist.

Gilt für