Share via


VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) Method

Definition

Creates a new instance of the VideoFrame class from the provided SoftwareBitmap.

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

Parameters

bitmap
SoftwareBitmap

The SoftwareBitmap from which the VideoFrame is created.

Returns

A VideoFrame.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

If the bitmap parameter is null, an argument exception will be thrown.

Applies to