PerceptionFrame
PerceptionFrame
PerceptionFrame
PerceptionFrame
Class
Definition
Represents a frame of data from the device.
public : sealed class PerceptionFrame : IPerceptionFramepublic sealed class PerceptionFrame : IPerceptionFramePublic NotInheritable Class PerceptionFrame Implements IPerceptionFrame// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
FrameData FrameData FrameData FrameData
The actual bytes of the frame which can be consumed as described by the Properties of the IPerceptionFrameProvider which produced the frame.
public : IMemoryBuffer FrameData { get; }public IMemoryBuffer FrameData { get; }Public ReadOnly Property FrameData As IMemoryBuffer// You can use this property in JavaScript.
The bytes of the frames.
Remarks
To write to these bytes, one can use Windows::Foundation::IMemoryBuffer::CreateReference() to create a Windows::Foundation::IMemoryBufferReference. That can then be converted to a Windows::Foundation::IMemoryBufferByteAccess and call GetBuffer() on that to get to the raw byte buffer.
RelativeTime RelativeTime RelativeTime RelativeTime
Gets or sets the Relative Time of this frame relative to other frames from this IPerceptionFrameProvider.
public : TimeSpan RelativeTime { get; set; }public TimeSpan RelativeTime { get; set; }Public ReadWrite Property RelativeTime As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The Relative Time of this frame relative to other frames from this IPerceptionFrameProvider.