LampArray.GetIndicesForPurposes(LampPurposes) 메서드

정의

지정된 LampPurposes에 바인딩된 모든 램프 인덱스를 검색합니다.

public:
 virtual Platform::Array <int> ^ GetIndicesForPurposes(LampPurposes purposes) = GetIndicesForPurposes;
winrt::array_view <int> GetIndicesForPurposes(LampPurposes const& purposes);
public int[] GetIndicesForPurposes(LampPurposes purposes);
function getIndicesForPurposes(purposes)
Public Function GetIndicesForPurposes (purposes As LampPurposes) As Integer()

매개 변수

반환

Int32[]

int[]

특정 LampPurposes에 바인딩된 모든 램프 인덱스의 배열입니다. LampPurposes에 바인딩된 램프 인덱스가 없으면 배열이 비어 있습니다.

예제

LampArray 샘플

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

AutoRGB 샘플

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

설명

램프 인덱스는 필요에 따라 디바이스에서 여러 LampPurposes에 바인딩할 수 있습니다.

적용 대상

추가 정보