LampInfo LampInfo LampInfo LampInfo LampInfo Class


Container of various properties of an individual lamp for a specific index.

public : sealed class LampInfo
struct winrt::Windows::Devices::Lights::LampInfo
public sealed class LampInfo
Public NotInheritable Class LampInfo
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)


BlueLevelCount BlueLevelCount BlueLevelCount BlueLevelCount BlueLevelCount

The number of blue intensities settable for this lamp.

FixedColor FixedColor FixedColor FixedColor FixedColor

If this lamp index has a fixed color, the color is returned; otherwise null.

GainLevelCount GainLevelCount GainLevelCount GainLevelCount GainLevelCount

The number of color independent intensities settable for this lamp.

GreenLevelCount GreenLevelCount GreenLevelCount GreenLevelCount GreenLevelCount

The number of green intensities settable for this lamp.

Index Index Index Index Index

Zero based index of the lamp. Every lamp is associated with one unique index.

Position Position Position Position Position

3D position of the lamp relative to the origin of the bounding-box.

Purposes Purposes Purposes Purposes Purposes

Purpose/s of the lamp.

RedLevelCount RedLevelCount RedLevelCount RedLevelCount RedLevelCount

The number of red intensities settable for this lamp.

UpdateLatency UpdateLatency UpdateLatency UpdateLatency UpdateLatency

Time between the device receiving an update for a lamp and it emanating from the device.


GetNearestSupportedColor(Color) GetNearestSupportedColor(Color) GetNearestSupportedColor(Color) GetNearestSupportedColor(Color) GetNearestSupportedColor(Color)

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