Share via


PerceptionColorFrameReader.TryReadLatestFrame Method

Definition

Attempts to read the most recent frame that is available to this color frame reader.

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

Returns

If the attempt was successful, this method returns the most recent frame that is available to this color frame reader. If the attempt was not successful, this method returns null.

Attributes

Applies to