PerceptionInfraredFrameArrivedEventArgs.TryOpenFrame 方法

定义

尝试打开已到达的红外帧。

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

返回

如果尝试成功,此方法将返回新到达的红外帧。 如果尝试不成功,此值将保持不变。

属性

注解

在打开新帧之前,应关闭现有帧。 如果应用在调用此方法时仍打开三个或更多帧,则 TryOpenFrame 将失败。

适用于