Click or drag to resize
CanvasRenderTarget Constructor (ICanvasResourceCreator, Single, Single, Single, DirectXPixelFormat, CanvasAlphaMode)
Initializes a new instance of the CanvasRenderTarget class.

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

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
width
Type: SystemSingle
height
Type: SystemSingle
dpi
Type: SystemSingle
format
Type: Windows.Graphics.DirectXDirectXPixelFormat
alpha
Type: Microsoft.Graphics.CanvasCanvasAlphaMode
Remarks

Size is in device independent pixels (DIPs), using the specified DPI.

List of supported pixel formats.

See Also