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.
Namespace: DevCase.Core.Media.GraphicsAssembly: 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
)
Public Shared Function GetRandomRectangle (
xMin As Integer,
xMax As Integer,
yMin As Integer,
yMax As Integer,
wMin As Integer,
wMax As Integer,
hMin As Integer,
hMax As Integer
) As Rectangle
Dim xMin As Integer
Dim xMax As Integer
Dim yMin As Integer
Dim yMax As Integer
Dim wMin As Integer
Dim wMax As Integer
Dim hMin As Integer
Dim hMax As Integer
Dim returnValue As Rectangle
returnValue = UtilDrawing.GetRandomRectangle(xMin,
xMax, yMin, yMax, wMin, wMax, hMin,
hMax)
public:
static Rectangle GetRandomRectangle(
int xMin,
int xMax,
int yMin,
int yMax,
int wMin,
int wMax,
int hMin,
int hMax
)
static member GetRandomRectangle :
xMin : int *
xMax : int *
yMin : int *
yMax : int *
wMin : int *
wMax : int *
hMin : int *
hMax : int -> Rectangle
No code example is currently available or this language may not be supported.
- 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.
Rectangle
The resulting
Rectangle.