-api-id | -api-type | ms.custom |
---|---|---|
M:Windows.Devices.Lights.LampInfo.GetNearestSupportedColor(Windows.UI.Color) |
winrt method |
RS5 |
Finds the nearest/closest matching color to the desired color, supported by this lamp. Call this to know whether a specific color will be applied during (e.g.) LampArray.SetColor
The color to find the nearest/closest.
The nearest/closest color supported by this lamp.
Not every lamp on a LampArray is guaranteed to support true 24-bit RGB color (is dependent on device capabilities). Based on the available color levels the nearest color is determined, assuming that each channel is linearly scaled over the available levels.