Share via


ColorFrameSource.FrameCaptured Event

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

Syntax

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

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

- or -

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

ColorFrameSource Class
WindowsPreview.Kinect Namespace