ImageThemingUtilities.IsDark(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.