Click or drag to resize
CanvasSwapChainCreateForCoreWindow Method (ICanvasResourceCreator, CoreWindow, Single, Single, Single, DirectXPixelFormat, Int32)
Initializes a new instance of a CanvasSwapChain, suitable for use with CoreWindow.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasSwapChain CreateForCoreWindow(
	ICanvasResourceCreator resourceCreator,
	CoreWindow coreWindow,
	float width,
	float height,
	float dpi,
	DirectXPixelFormat format,
	int bufferCount
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
coreWindow
Type: Windows.UI.CoreCoreWindow
width
Type: SystemSingle
height
Type: SystemSingle
dpi
Type: SystemSingle
format
Type: Windows.Graphics.DirectXDirectXPixelFormat
bufferCount
Type: SystemInt32

Return Value

Type: CanvasSwapChain
Remarks

The size is in device independent pixels (DIPs).

List of supported pixel formats.

The TransformMatrix property is not available when the CanvasSwapChain is created with this method.

See Also