Click or drag to resize

SizeCeiling Method

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
)

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