Share via


LampArrayBitmapEffect.BitmapRequested 이벤트

정의

시스템에 의해 트리거되는 이벤트는 새 이미지를 효과에 제공해야 함을 나타냅니다.

// Register
event_token BitmapRequested(TypedEventHandler<LampArrayBitmapEffect, LampArrayBitmapRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void BitmapRequested(event_token const* cookie) const;

// Revoke with event_revoker
LampArrayBitmapEffect::BitmapRequested_revoker BitmapRequested(auto_revoke_t, TypedEventHandler<LampArrayBitmapEffect, LampArrayBitmapRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<LampArrayBitmapEffect,LampArrayBitmapRequestedEventArgs> BitmapRequested;
function onBitmapRequested(eventArgs) { /* Your code */ }
lampArrayBitmapEffect.addEventListener("bitmaprequested", onBitmapRequested);
lampArrayBitmapEffect.removeEventListener("bitmaprequested", onBitmapRequested);
- or -
lampArrayBitmapEffect.onbitmaprequested = onBitmapRequested;
Public Custom Event BitmapRequested As TypedEventHandler(Of LampArrayBitmapEffect, LampArrayBitmapRequestedEventArgs) 

이벤트 유형

예제

LampArray 샘플

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

AutoRGB 샘플

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

설명

  • 재생 목록이 효과를 시작하면 즉시 이벤트가 트리거 BitmapRequested 됩니다.
  • 재생 목록이 효과를 일시 중지하면 추가 이벤트 트리거가 일시적으로 중지됩니다. 재생 목록이 다시 시작되면 다시 시작됩니다.
  • 재생 목록이 효과를 중지하면 재생 목록이 다시 시작될 때까지 더 이상 이벤트 트리거가 발생하지 않습니다.
  • 이벤트는 기간이 만료된 마지막 시간을 트리거합니다. 이는 효과가 완료되기 전에 호출자가 최종 상태를 설정하는 데 사용해야 합니다.

이 이벤트에 등록된 여러 처리기의 동작은 정의되지 않습니다.

적용 대상

추가 정보