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 및 Windows.Devices.Lights.Effects API를 사용하여 주변 디바이스의 RGB 조명을 제어하는 방법을 보여 줍니다.

AutoRGB 샘플

데스크톱 화면에서 대표적인 단일 색을 추출하고 이를 사용하여 연결된 RGB 디바이스에서 LED 램프를 비추는 방법을 보여 줍니다.

설명

램프가 원하는 색을 지원하지 않으면 NearestSupportedColor로 설정됩니다.

디바이스에 인덱스가 없으면 무시되고 나머지 인덱스는 계속 적용됩니다.

검은색 은 램프가 '꺼져 있는' 것과 같습니다.

적용 대상

추가 정보