This topic has not yet been rated - Rate this topic

ISurfaceImageSourceNative interface

Provides the implementation of a shared fixed-size surface for DirectX 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 Windows::UI::Xaml::Media::Imaging::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)
	

See also

DirectX and XAML interop

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.