-api-id | -api-type | ms.custom |
---|---|---|
T:Windows.Devices.Lights.Effects.LampArrayBitmapEffect |
winrt class |
RS5 |
Renders a series of images to selected lamp indexes on the device.
Effect captures a series of images, by the caller subscribing to the BitmapRequested event and calling UpdateBitmap when triggered. This allows for images created on-the-fly to be supplied to the effect.
Best effort is made to create a 2D composition of requested lamps and scale up/down images.
Before you can play an effect, you must append it to a LampArrayEffectPlaylist (see Append).
If a LampArray is bound to a LampArrayBitmapEffect and it disconnects, progress of the effect continues as a no-op. No exception/error is thrown/returned.
:::row::: :::column:::
[LampArray sample](https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/LampArray)
Demonstrates how to control RGB lighting of peripheral devices using the [**Windows.Devices.Lights**](/uwp/api/windows.devices.lights) and [**Windows.Devices.Lights.Effects**](/uwp/api/windows.devices.lights.effects) APIs.
:::column-end:::
:::column:::
[AutoRGB Sample](https://github.com/microsoft/Dynamic-Lighting-AutoRGB)
Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.
:::column-end:::
:::row-end:::