ImageThemingUtilities.IsLight(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 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.