ISurfaceImageSourceNative interface

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.
 

Methods

The ISurfaceImageSourceNative interface has these methods.

Method Description
ISurfaceImageSourceNative::BeginDraw Opens the supplied DXGI surface for drawing.
ISurfaceImageSourceNative::EndDraw 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

   
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

See Also

DirectX and XAML interop

IUnknown

IVirtualSurfaceImageSourceNative

SurfaceImageSource