Size class (gdiplustypes.h)

The Size class encapsulates a Width and Height dimension in a 2-D coordinate system.

Methods

The Size class has these methods.

 
Size::Empty

The Size::Empty method determines whether a Size object is empty.
Size::Equals

The Size::Equals method determines whether two Size objects are equal.
Size::operator+

The Size::operator+ method adds the Width and Height data members of two Size objects.
Size::operator-

The Size::operator- method subtracts the Width and Height data members of two Size objects.
Size::Size

Creates a new Size object and initializes the members to zero. This is the default constructor.
Size::Size

Creates a Size object and initializes its members by copying the members of another Size object.
Size::Size

Creates a Size object and initializes its Width and Height data members.

Requirements

Requirement Value
Target Platform Windows
Header gdiplustypes.h