Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 989 Bytes

lampinfo_getnearestsupportedcolor_1689565521.md

File metadata and controls

29 lines (20 loc) · 989 Bytes
-api-id -api-type ms.custom
M:Windows.Devices.Lights.LampInfo.GetNearestSupportedColor(Windows.UI.Color)
winrt method
RS5

Windows.Devices.Lights.LampInfo.GetNearestSupportedColor

-description

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

-parameters

-param desiredColor

The color to find the nearest/closest.

-returns

The nearest/closest color supported by this lamp.

-remarks

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.

-see-also

-examples