System::Drawing::Size::Round method

Size::Round method

Constructs a Size object from the specified SizeF object by rounding the SizeF object’s width and height values to the nearest integer values.

static Size System::Drawing::Size::Round(const SizeF &size)
ParameterTypeDescription
sizeconst SizeF&The SizeF object to convert to construct Size object from

ReturnValue

A Size object constructed from size

See Also