BodyFrameSource.FrameCaptured Event

Event that is raised when the next body frame is ready to be delivered to subscribed readers.

Syntax

public:
event TypedEventHandler<BodyFrameSource, FrameCapturedEventArgs>^ FrameCaptured {
         EventRegistrationToken add (TypedEventHandler<BodyFrameSource, FrameCapturedEventArgs>^ value);
         void remove (EventRegistrationToken token);
}
public event TypedEventHandler<BodyFrameSource, FrameCapturedEventArgs> FrameCaptured
function onFrameCaptured(eventArgs) { /* Your code */ }

// addEventListener syntax
bodyFrameSource.addEventListener("framecaptured", onFrameCaptured);
bodyFrameSource.removeEventListener("framecaptured", onFrameCaptured);

- or -

bodyFrameSource.onframecaptured = onFrameCaptured;

Remarks

The FrameCaptured event is used to notify the application that the next frame is ready to be delivered to subscribed readers. Applications are only allowed to hold one frame locked at any given time. This event can be used to release the currently locked frame to allow the new one to be delivered to all subscribed readers.

Requirements

Namespace: WindowsPreview.Kinect

Metadata: windowspreview.kinect.winmd

See also

Reference

BodyFrameSource Class
WindowsPreview.Kinect Namespace