Share via


InfraredFrameSource.FrameCaptured Event

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

Syntax

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

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

- or -

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

InfraredFrameSource Class
WindowsPreview.Kinect Namespace