Click or drag to resize
CanvasGeometryCreateRoundedRectangle Method (ICanvasResourceCreator, Rect, Single, Single)
Creates a new rounded rectangle geometry object with the specified extents.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasGeometry CreateRoundedRectangle(
	ICanvasResourceCreator resourceCreator,
	Rect rect,
	float radiusX,
	float radiusY
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
rect
Type: Windows.FoundationRect
radiusX
Type: SystemSingle
radiusY
Type: SystemSingle

Return Value

Type: CanvasGeometry
Remarks
The resource creator parameter can be null if the geometry will never be drawn onto a CanvasDevice.
See Also