LampArray.SetSingleColorForIndices(Color, Int32[]) メソッド

定義

指定したすべてのランプを同じ色に設定します。

public:
 virtual void SetSingleColorForIndices(Color desiredColor, Platform::Array <int> ^ lampIndexes) = SetSingleColorForIndices;
void SetSingleColorForIndices(Color const& desiredColor, winrt::array_view <int> const& lampIndexes);
public void SetSingleColorForIndices(Color desiredColor, int[] lampIndexes);
function setSingleColorForIndices(desiredColor, lampIndexes)
Public Sub SetSingleColorForIndices (desiredColor As Color, lampIndexes As Integer())

パラメーター

desiredColor
Color

目的の色。

lampIndexes

Int32[]

int[]

設定するランプ インデックスの配列。

LampArray サンプル

Windows.Devices.Lights API と Windows.Devices.Lights.Effects API を使用して周辺機器の RGB 照明を制御する方法を示します。

AutoRGB サンプル

デスクトップ画面から 1 つの代表的な色を抽出し、それを使用して、接続された RGB デバイス上の LED ランプを点灯させる方法を示します。

注釈

ランプが目的の色をサポートしていない場合は、NearestSupportedColor に設定されます

インデックスがデバイス上に存在しない場合は無視され、残りのインデックスは適用されます。

はランプが「オフ」であることに相当します。

適用対象

こちらもご覧ください