PerceptionColorFrameReader.TryReadLatestFrame 方法

定义

尝试读取此彩色帧阅读器可用的最新帧。

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

返回

如果尝试成功,此方法将返回可供此彩色帧阅读器使用的最新帧。 如果尝试不成功,此方法将返回 null。

属性

适用于