-api-id | -api-type |
---|---|
P:Windows.Media.Capture.Frames.VideoMediaFrame.Direct3DSurface |
winrt property |
Gets an IDirect3DSurface object containing the image data for the VideoMediaFrame.
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..