LowLagPhotoSequenceCapture.PhotoCaptured 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在捕获照片时发生。
// Register
event_token PhotoCaptured(TypedEventHandler<LowLagPhotoSequenceCapture, PhotoCapturedEventArgs const&> const& handler) const;
// Revoke with event_token
void PhotoCaptured(event_token const* cookie) const;
// Revoke with event_revoker
LowLagPhotoSequenceCapture::PhotoCaptured_revoker PhotoCaptured(auto_revoke_t, TypedEventHandler<LowLagPhotoSequenceCapture, PhotoCapturedEventArgs const&> const& handler) const;
public event TypedEventHandler<LowLagPhotoSequenceCapture,PhotoCapturedEventArgs> PhotoCaptured;
function onPhotoCaptured(eventArgs) { /* Your code */ }
lowLagPhotoSequenceCapture.addEventListener("photocaptured", onPhotoCaptured);
lowLagPhotoSequenceCapture.removeEventListener("photocaptured", onPhotoCaptured);
- or -
lowLagPhotoSequenceCapture.onphotocaptured = onPhotoCaptured;
Public Custom Event PhotoCaptured As TypedEventHandler(Of LowLagPhotoSequenceCapture, PhotoCapturedEventArgs)
事件类型
注解
将处理程序添加到 PhotoCaptured 事件,以便获取序列中捕获的照片。 PhotoCapturedEventArgs 为捕获的帧提供数据。 PhotoCapturedEventArgs.Frame 包含捕获的照片, PhotoCapturedEventArgs.Thumbnail 包含缩略图。