Click or drag to resize
CanvasGeometryCreateRoundedRectangle Method (ICanvasResourceCreator, Single, Single, Single, Single, 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,
	float x,
	float y,
	float w,
	float h,
	float radiusX,
	float radiusY
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
x
Type: SystemSingle
y
Type: SystemSingle
w
Type: SystemSingle
h
Type: SystemSingle
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