Bagikan melalui


LampArrayBitmapEffect.BitmapRequested Kejadian

Definisi

Peristiwa yang dipicu oleh sistem untuk menunjukkan gambar baru harus diberikan efeknya.

// 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) 

Jenis Acara

Contoh

Sampel LampArray

Menunjukkan cara mengontrol pencahayaan RGB perangkat periferal menggunakan API Windows.Devices.Lights dan Windows.Devices.Lights.Effects .

Sampel AutoRGB

Menunjukkan cara mengekstrak satu warna representatif dari layar desktop dan menggunakannya untuk menerangi lampu LED pada perangkat RGB yang terhubung.

Keterangan

  • Setelah daftar putar memulai efeknya, daftar putar akan segera memicu BitmapRequested peristiwa.
  • Jika daftar putar menjeda efeknya, itu akan menghentikan sementara pemicu peristiwa lebih lanjut. Akan dilanjutkan ketika daftar putar dimulai lagi.
  • Jika daftar putar menghentikan efeknya, tidak ada pemicu peristiwa lebih lanjut yang akan terjadi sampai daftar putar dimulai lagi.
  • Peristiwa akan memicu waktu akhir ketika Durasi telah kedaluwarsa. Ini harus digunakan oleh penelepon untuk mengatur status akhir sebelum efek selesai.

Perilaku beberapa handler yang terdaftar dengan kejadian ini tidak terdefinisi.

Berlaku untuk

Lihat juga