ISurfaceImageSourceNative interface (windows.ui.xaml.media.dxinterop.h)
Provides the implementation of a shared fixed-size surface for Direct2D drawing.
Note If the surface is larger than the screen size, use IVirtualSurfaceImageSourceNative instead.
Inheritance
The ISurfaceImageSourceNative interface inherits from the IUnknown interface. ISurfaceImageSourceNative also has these types of members:
Methods
The ISurfaceImageSourceNative interface has these methods.
ISurfaceImageSourceNative::BeginDraw Opens the supplied DXGI surface for drawing. |
ISurfaceImageSourceNative::EndDraw The ISurfaceImageSourceNative::EndDraw method (windows.ui.xaml.media.dxinterop.h) closes the surface draw operation. |
ISurfaceImageSourceNative::SetDevice Sets the DXGI device, created with D3D11_CREATE_DEVICE_BGRA_SUPPORT, that will draw the surface. |
Remarks
This interface provides the native implementation of the SurfaceImageSource Windows runtime type. To obtain a pointer to ISurfaceImageSourceNative, you must cast a SurfaceImageSource instance to IInspectable or IUnknown, and call QueryInterface.
Microsoft::WRL::ComPtr<ISurfaceImageSourceNative> m_sisNative;
// ...
IInspectable* sisInspectable = (IInspectable*) reinterpret_cast<IInspectable*>(surfaceImageSource);
sisInspectable->QueryInterface(__uuidof(ISurfaceImageSourceNative), (void **)&m_sisNative)
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | windows.ui.xaml.media.dxinterop.h |