VideoMediaFrame.Direct3DSurface Property

Definition

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

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

Property Value

An IDirect3DSurface object containing the image data for the VideoMediaFrame.

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..

Applies to