VideoMediaFrame.Direct3DSurface Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An IDirect3DSurface object containing the image data for the VideoMediaFrame.
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..
Produkt | Verze |
---|---|
WinRT | Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |