Subtract()

Size::Subtract(const Size&, const Size&) method

Returns a new Size object that is the results of subctraction of size2 from size1, i.e. whose width value is the result of subtraction of size2’s width value from size1’s width value and height value is the result of subtraction of size2’s height value from size1’s height value.

static Size System::Drawing::Size::Subtract(const Size &size1, const Size &size2)

Arguments

ParameterTypeDescription
size1const Size&The Size object to subtract from
size2const Size&The Size object to subtract

Return Value

The Size object which is the result of subtraction of size2 from size1

See Also