Click or drag to resize
CanvasSwapChain.CreateForCoreWindow 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.Canvas.ICanvasResourceCreator
coreWindow
Type: Windows.UI.Core.CoreWindow
width
Type: System.Single
height
Type: System.Single
dpi
Type: System.Single
format
Type: Windows.Graphics.DirectX.DirectXPixelFormat
bufferCount
Type: System.Int32

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