UtilDrawingGetRandomRectangleF(Single, Single, Single, Single) Method

Gets a random RectangleF with a location between the specified maximum X and Y coordinates, and with a size between the specified 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 xMax,
	float yMax,
	float wMax,
	float hMax
)

Parameters

xMax  Single
The maximum X coordinate.
yMax  Single
The maximum Y coordinate.
wMax  Single
The maximum width.
hMax  Single
The maximum height.

Return Value

RectangleF
The resulting RectangleF.

See Also