共用方式為


MediaFrameArrivedEventArgs 類別

定義

提供 MediaFrameReader.FrameArrived 事件的資料。

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
繼承
Object Platform::Object IInspectable MediaFrameArrivedEventArgs
屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

處理 MediaFrameReader.FrameArrived 事件,以取得這個類別的實例。 在事件處理常式中,將傳送者轉換成 MediaFrameReader ,並呼叫 TryAcquireLatestFrame ,以取得 MediaFrameReference ,以從畫面來源取得代表最新畫面的 MediaFrameReference,如果有的話。

適用於