Share via


Interface ISurfaceImageSourceNative (windows.ui.xaml.media.dxinterop.h)

Fournit l’implémentation d’une surface de taille fixe partagée pour le dessin Direct2D.

Note Si la surface est supérieure à la taille de l’écran, utilisez plutôt IVirtualSurfaceImageSourceNative .
 

Héritage

L’interface ISurfaceImageSourceNative hérite de l’interface IUnknown. ISurfaceImageSourceNative a également les types de membres suivants :

Méthodes

L’interface ISurfaceImageSourceNative a ces méthodes.

 
ISurfaceImageSourceNative ::BeginDraw

Ouvre la surface DXGI fournie pour le dessin.
ISurfaceImageSourceNative ::EndDraw

La méthode ISurfaceImageSourceNative ::EndDraw (windows.ui.xaml.media.dxinterop.h) ferme l’opération de dessin de surface.
ISurfaceImageSourceNative ::SetDevice

Définit l’appareil DXGI, créé avec D3D11_CREATE_DEVICE_BGRA_SUPPORT, qui dessine la surface.

Remarques

Cette interface fournit l’implémentation native du type d’exécution Windows SurfaceImageSource . Pour obtenir un pointeur vers ISurfaceImageSourceNative, vous devez convertir un instance SurfaceImageSource en IInspectable ou IUnknown, puis appeler QueryInterface.


Microsoft::WRL::ComPtr<ISurfaceImageSourceNative>	m_sisNative;
// ...
IInspectable* sisInspectable = (IInspectable*) reinterpret_cast<IInspectable*>(surfaceImageSource);
sisInspectable->QueryInterface(__uuidof(ISurfaceImageSourceNative), (void **)&m_sisNative)
	

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 8.1 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2012 R2 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête windows.ui.xaml.media.dxinterop.h

Voir aussi

Technologie interop DirectX et XAML

IUnknown

IVirtualSurfaceImageSourceNative

SurfaceImageSource