PerceptionColorFrameReader.FrameArrived Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
S’abonne à l’événement FrameArrived. Cet événement est déclenché chaque fois qu’une nouvelle image arrive à partir de la source du cadre de couleur.
// Register
event_token FrameArrived(TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
// Revoke with event_token
void FrameArrived(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameReader::FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
event_token FrameArrived(TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
// Revoke with event_token
void FrameArrived(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameReader::FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
public event TypedEventHandler<PerceptionColorFrameReader,PerceptionColorFrameArrivedEventArgs> FrameArrived;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PerceptionColorFrameReader,PerceptionColorFrameArrivedEventArgs> FrameArrived;
function onFrameArrived(eventArgs) { /* Your code */ }
perceptionColorFrameReader.addEventListener("framearrived", onFrameArrived);
perceptionColorFrameReader.removeEventListener("framearrived", onFrameArrived);
- or -
perceptionColorFrameReader.onframearrived = onFrameArrived;
Public Custom Event FrameArrived As TypedEventHandler(Of PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs)
Type d'événement
- Attributs