PerceptionDepthFrameArrivedEventArgs.TryOpenFrame Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to open the depth frame that has arrived. Existing frames should be closed before opening new frames. If an app has three or more frames still open when this method is called, TryOpenFrame will fail.
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
Returns
If the attempt is successful, this method returns the newly-arrived depth frame. If the attempt is unsuccessful, this value is unchanged.
- Attributes