Click or drag to resize
CanvasSwapChain.CreateForCoreWindow Method (ICanvasResourceCreator, CoreWindow, Single)
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 dpi
)

Parameters

resourceCreator
Type: Microsoft.Graphics.Canvas.ICanvasResourceCreator
coreWindow
Type: Windows.UI.Core.CoreWindow
dpi
Type: System.Single

Return Value

Type: CanvasSwapChain
Remarks

The swap chain size matches the current size of the specified CoreWindow. The pixel size of the swap chain is calculated using the provided dpi.

The swap chain's pixel format will default to DirectXPixelFormat.B8G8R8A8UIntNormalized, its buffer count will be 2, and its alpha mode will be CanvasAlphaMode.Ignore.

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

See Also