Udostępnij za pośrednictwem


VideoMediaFrame.SoftwareBitmap Property

Definition

Gets a SoftwareBitmap object containing the image data for the VideoMediaFrame.

public:
 property SoftwareBitmap ^ SoftwareBitmap { SoftwareBitmap ^ get(); };
SoftwareBitmap SoftwareBitmap();
public SoftwareBitmap SoftwareBitmap { get; }
var softwareBitmap = videoMediaFrame.softwareBitmap;
Public ReadOnly Property SoftwareBitmap As SoftwareBitmap

Property Value

A SoftwareBitmap object containing the image data for the VideoMediaFrame.

Remarks

Initialize a MediaCapture object to use CPU memory for captured frames by setting the MemoryPreference property of the MediaCaptureInitializationSettings to Cpu. Doing this guarantees that the SoftwareBitmap property of a received VideoMediaFrame will be non-null and contain the image data from the frame. Setting the memory preference to Auto allows the system to choose the optimal memory location for the current device. If the system chooses to use GPU memory, the SoftwareBitmap property will be null and the Direct3DSurface property should be used instead.

Applies to