UtilDrawingGetRandomRectangle(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) Method

Gets a random Rectangle with a location between the specified minimum and maximum X and Y coordinates, and with a size between the specified minimum and maximum width and height.

Definition

Namespace: DevCase.Core.Media.Graphics
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Rectangle GetRandomRectangle(
	int xMin,
	int xMax,
	int yMin,
	int yMax,
	int wMin,
	int wMax,
	int hMin,
	int hMax
)

Parameters

xMin  Int32
The minimum X coordinate.
xMax  Int32
The maximum X coordinate.
yMin  Int32
The minimum Y coordinate.
yMax  Int32
The maximum Y coordinate.
wMin  Int32
The minimum width.
wMax  Int32
The maximum width.
hMin  Int32
The minimum height.
hMax  Int32
The maximum height.

Return Value

Rectangle
The resulting Rectangle.

See Also