UtilDrawingGetRandomRectangleF(Single, Single, Single, Single, Single, Single, Single, Single) Method

Gets a random RectangleF 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 RectangleF GetRandomRectangleF(
	float xMin,
	float xMax,
	float yMin,
	float yMax,
	float wMin,
	float wMax,
	float hMin,
	float hMax
)

Parameters

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

Return Value

RectangleF
The resulting RectangleF.

See Also