Converts a floating point
rectangle to an integral
Rectangle by getting the smallest integral value of X, Y, Width, and Height
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Rectangle Ceiling(
RectangleF rectangle
)
Public Shared Function Ceiling (
rectangle As RectangleF
) As Rectangle
static member Ceiling :
rectangle : RectangleF -> Rectangle
Parameters
- rectangle
- Type: Eto.DrawingRectangleF
Rectangle to get the ceiling
Return Value
Type:
RectangleA new instance of a Rectangle with truncated X, Y and a ceiling Width and Height values
Remarks
This is used to get an integral rectangle that bounds the floating point rectangle completely.
E.g. if a RectangleF has (X,Y,W,H) values of 0.2, 0.9, 1.1, 1.9, it would return a new integral rectangle
with values 0, 0, 2, 2.
See Also