VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) VideoFrame.CreateWithSoftwareBitmap(SoftwareBitmap) 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 bitmap) const;
public static VideoFrame CreateWithSoftwareBitmap(SoftwareBitmap bitmap)
Public Shared Function CreateWithSoftwareBitmap(bitmap As SoftwareBitmap) As VideoFrame
var videoFrame = Windows.Media.VideoFrame.createWithSoftwareBitmap(bitmap);

Parameters

bitmap
SoftwareBitmap SoftwareBitmap SoftwareBitmap

The SoftwareBitmap from which the VideoFrame is created.

Returns

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

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