مشاركة عبر


MediaFrameArrivedEventArgs Class

Definition

Provides data for the MediaFrameReader.FrameArrived event.

public ref class MediaFrameArrivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaFrameArrivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaFrameArrivedEventArgs
Public NotInheritable Class MediaFrameArrivedEventArgs
Inheritance
Object Platform::Object IInspectable MediaFrameArrivedEventArgs
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Get an instance of this class by handling the MediaFrameReader.FrameArrived event. In the event handler, cast the sender as a MediaFrameReader and call TryAcquireLatestFrame to get a MediaFrameReference representing the latest frame from the frame source, if one is available.

Applies to