EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

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.

Members

The ISurfaceImageSourceNative interface inherits from the IUnknown interface. ISurfaceImageSourceNative also has these types of members:

Methods

The ISurfaceImageSourceNative interface has these methods.

MethodDescription
BeginDraw

Opens the supplied DXGI surface for drawing.

EndDraw

Closes the surface draw operation.

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 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Header

Windows.ui.xaml.media.dxinterop.h

IDL

Windows.ui.xaml.media.dxinterop.idl

DLL

Windows.UI.Xaml.dll

IID

IID_ISurfaceImageSourceNative is defined as f2e9edc1-d307-4525-9886-0fafaa44163c

See also

DirectX and XAML interop
IVirtualSurfaceImageSourceNative
SurfaceImageSource

 

 

Community-Beiträge

Anzeigen:
© 2014 Microsoft