PerceptionDepthFrameArrivedEventArgs.TryOpenFrame 方法

定义

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

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

返回

如果尝试成功,此方法将返回新到达的深度帧。 如果尝试失败,则此值保持不变。

属性

适用于