VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) 方法

定義

從提供的SoftwareBitmap建立VideoFrame類別的新實例。

public:
 static VideoFrame ^ CreateWithSoftwareBitmap(SoftwareBitmap ^ bitmap);
 static VideoFrame CreateWithSoftwareBitmap(SoftwareBitmap const& bitmap);
public static VideoFrame CreateWithSoftwareBitmap(SoftwareBitmap bitmap);
function createWithSoftwareBitmap(bitmap)
Public Shared Function CreateWithSoftwareBitmap (bitmap As SoftwareBitmap) As VideoFrame

參數

bitmap
SoftwareBitmap

建立VideoFrameSoftwareBitmap

傳回

VideoFrame

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

如果 點陣圖 參數為 Null,則會擲回引數例外狀況。

適用於