Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.86 KB

lamparraybitmapeffect_zindex.md

File metadata and controls

49 lines (30 loc) · 1.86 KB
-api-id -api-type ms.custom
P:Windows.Devices.Lights.Effects.LampArrayBitmapEffect.ZIndex
winrt property
RS5

Windows.Devices.Lights.Effects.LampArrayBitmapEffect.ZIndex

-description

Gets or sets the global precedence (across all playlists) for two effects that modify the same lamp (on the same LampArray).

-property-value

Default value is 0.

-remarks

Higher zIndex implies higher precedence.

If two effects with the same zIndex operate on the same lamp (via two separate LampArrayEffectPlaylists), the behavior is undefined.

After you've appended (see Append) an effect to a LampArrayEffectPlaylist, the value of this property is locked, and you can no longer change it.

-examples

:::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:::

-see-also

Lighting and Illumination (www.usb.org), Dynamic lighting