VideoMediaFrame.Direct3DSurface VideoMediaFrame.Direct3DSurface VideoMediaFrame.Direct3DSurface VideoMediaFrame.Direct3DSurface VideoMediaFrame.Direct3DSurface Property

Definition

Gets an IDirect3DSurface object containing the image data for the VideoMediaFrame.

public : IDirect3DSurface Direct3DSurface { get; }
IDirect3DSurface Direct3DSurface();
public IDirect3DSurface Direct3DSurface { get; }
Public ReadOnly Property Direct3DSurface As IDirect3DSurface
var iDirect3DSurface = videoMediaFrame.direct3dSurface;

Property Value

Remarks

If you initialize a MediaCapture object to use CPU memory for captured frames by setting the MemoryPreference property of the MediaCaptureInitializationSettings to Cpu, the Direct3DSurface property of a received VideoMediaFrame will be null and the SoftwareBitmap property 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 will contain the frame's image data..