Click or drag to resize
CanvasRenderTarget.CreateFromDirect3D11Surface Method (ICanvasResourceCreator, IDirect3DSurface, Single)
Creates a CanvasRenderTarget from an existing Direct3D graphics surface, using the specified DPI and premultiplied alpha.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasRenderTarget CreateFromDirect3D11Surface(
	ICanvasResourceCreator resourceCreator,
	IDirect3DSurface surface,
	float dpi
)

Parameters

resourceCreator
Type: Microsoft.Graphics.Canvas.ICanvasResourceCreator
surface
Type: Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface
dpi
Type: System.Single

Return Value

Type: CanvasRenderTarget
See Also