PerceptionColorFrameReader
PerceptionColorFrameReader
PerceptionColorFrameReader
PerceptionColorFrameReader
Class
Definition
Reads color frames from a color frame source.
public : sealed class PerceptionColorFrameReader : IPerceptionColorFrameReader, IClosablepublic sealed class PerceptionColorFrameReader : IPerceptionColorFrameReader, IDisposablePublic NotInheritable Class PerceptionColorFrameReader Implements IPerceptionColorFrameReader, IDisposable// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
IsPaused IsPaused IsPaused IsPaused
Gets or sets a boolean value indicating whether or not this reader is paused.
public : PlatForm::Boolean IsPaused { get; set; }public bool IsPaused { get; set; }Public ReadWrite Property IsPaused As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
A boolean value indicating whether or not this reader is paused.
Source Source Source Source
Gets the color frame source this reader gets frames from.
public : PerceptionColorFrameSource Source { get; }public PerceptionColorFrameSource Source { get; }Public ReadOnly Property Source As PerceptionColorFrameSource// You can use this property in JavaScript.
- Value
- PerceptionColorFrameSource PerceptionColorFrameSource PerceptionColorFrameSource PerceptionColorFrameSource
The color frame source this reader gets frames from.
Methods
Close() Close() Close() Close()
Releases system resources that are exposed by a Windows Runtime object.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
Dispose() Dispose() Dispose() Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()
TryReadLatestFrame() TryReadLatestFrame() TryReadLatestFrame() TryReadLatestFrame()
Attempts to read the most recent frame that is available to this color frame reader.
public : PerceptionColorFrame TryReadLatestFrame()public PerceptionColorFrame TryReadLatestFrame()Public Function TryReadLatestFrame() As PerceptionColorFrame// You can use this method in JavaScript.
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.
Events
FrameArrived FrameArrived FrameArrived FrameArrived
Subscribes to the FrameArrived event. This event is fired whenever a new frame arrives from the color frame source.
public : event TypedEventHandler FrameArrived<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs>public event TypedEventHandler FrameArrived<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs>Public Event FrameArrived<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs>// You can use this event in JavaScript.