PerceptionInfraredFrameArrivedEventArgs.TryOpenFrame Method

Definition

Attempts to open the infrared frame that has arrived.

public:
 virtual PerceptionInfraredFrame ^ TryOpenFrame() = TryOpenFrame;
PerceptionInfraredFrame TryOpenFrame();
/// [Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameArrivedEventArgs may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
PerceptionInfraredFrame TryOpenFrame();
public PerceptionInfraredFrame TryOpenFrame();
[Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameArrivedEventArgs may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameArrivedEventArgs instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public PerceptionInfraredFrame TryOpenFrame();
function tryOpenFrame()
Public Function TryOpenFrame () As PerceptionInfraredFrame

Returns

If the attempt is successful, this method returns the newly-arrived infrared frame. If the attempt is unsuccessful, this value is unchanged.

Attributes

Remarks

Existing frames should be closed before opening new frames. If an app has three or more frames still open when this method is called, TryOpenFrame will fail.

Applies to