共用方式為


PerceptionDepthFrameReader.TryReadLatestFrame 方法

定義

嘗試讀取此深度畫面讀取器可用的最新畫面。

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

傳回

如果嘗試成功,這個方法會傳回這個深度畫面讀取器可使用的最新畫面。 如果嘗試未成功,這個方法會傳回 null。

屬性

適用於