PerceptionColorFrameArrivedEventArgs.TryOpenFrame 方法

定义

尝试打开已到达的颜色框。

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

返回

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

属性

注解

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

适用于