Share via


BodyIndexFrameSource.FrameCaptured Event

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

Syntax

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

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

- or -

bodyIndexFrameSource.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

BodyIndexFrameSource Class
WindowsPreview.Kinect Namespace