ISurfaceImageSourceNative interface
Provides the implementation of a shared fixed-size surface for Direct2D drawing.
Members
The ISurfaceImageSourceNative interface inherits from the IUnknown interface. ISurfaceImageSourceNative also has these types of members:
Methods
The ISurfaceImageSourceNative interface has these methods.
| Method | Description |
|---|---|
| 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 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_ISurfaceImageSourceNative is defined as f2e9edc1-d307-4525-9886-0fafaa44163c |
See also