Click or drag to resize
CanvasSwapChain Constructor (ICanvasResourceCreator, Single, Single, Single)
Initializes a new instance of the CanvasSwapChain class with the specified width, height, and dpi.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasSwapChain(
	ICanvasResourceCreator resourceCreator,
	float width,
	float height,
	float dpi
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
width
Type: SystemSingle
height
Type: SystemSingle
dpi
Type: SystemSingle
Remarks
The swap chain's pixel format will default to DirectXPixelFormat.B8G8R8A8UIntNormalized, its buffer count will be 2, and its alpha mode will be CanvasAlphaMode.Premultiplied. Size is in device independent pixels (DIPs).
See Also