Click or drag to resize
CanvasGeometryCreateRectangle Method (ICanvasResourceCreator, Single, Single, Single, Single)
Creates a rectangular geometry primitive 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 CreateRectangle(
	ICanvasResourceCreator resourceCreator,
	float x,
	float y,
	float w,
	float h
)

Parameters

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