Converts a floating point size to an integral size by rounding the width and height to the
next integral value.
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Size Ceiling(
SizeF size
)
Public Shared Function Ceiling (
size As SizeF
) As Size
static member Ceiling :
size : SizeF -> Size
Parameters
- size
- Type: Eto.DrawingSizeF
Size.
Return Value
Type:
Size[Missing <returns> documentation for "M:Eto.Drawing.Size.Ceiling(Eto.Drawing.SizeF)"]
Remarks
This is useful to get a size struct that includes the floating point values completely. As opposed to the
Round(SizeF), which will round down to the nearest integral number.
For example, a Width or Height of 2.1 or 2.6 would be translated to 3.
See Also