Provides factory methods for creating Bounds
objects, which represent rectangular areas in a coordinate space.
Attributes
Members list
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates a Bounds
instance ensuring that the coordinates are sorted so the upper left is truly at the top-left and the lower right is at the bottom-right.
Creates a Bounds
instance ensuring that the coordinates are sorted so the upper left is truly at the top-left and the lower right is at the bottom-right.
Value parameters
- lowerRightX
-
X-coordinate of the lower right corner in pixels.
- lowerRightY
-
Y-coordinate of the lower right corner in pixels.
- upperLeftX
-
X-coordinate of the upper left corner in pixels.
- upperLeftY
-
Y-coordinate of the upper left corner in pixels.
Attributes
- Returns
-
A new
Bounds
instance.
Creates a Bounds
instance centered around a given point with specified width and height.
Creates a Bounds
instance centered around a given point with specified width and height.
Value parameters
- center
-
The center position.
- height
-
The height in pixels.
- width
-
The width in pixels.
Attributes
- Returns
-
A new
Bounds
instance.