UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | req.product | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:gdiplustypes.Point.operator-add |
Point::operator-add (gdiplustypes.h) |
The Point::operator+ method adds the X and Y data members of two Point objects. |
|
gdiplus\_gdiplus_CLASS_Point_operator_opadd_point_.htm |
gdiplus |
VS|gdicpp|~\gdiplus\gdiplusreference\classes\pointclass\pointmethods\operatorplus.htm |
12/05/2018 |
Point class [GDI+],operator+ method, Point.operator+, Point.operator+(const Point&), Point.operator-add, Point::operator+, Point::operator-add, _gdiplus_CLASS_Point_operator_opadd_point_, gdiplus._gdiplus_CLASS_Point_operator_opadd_point_, operator+, operator+ method [GDI+], operator+ method [GDI+],Point class |
gdiplustypes.h |
Gdiplus.h |
Windows |
Windows XP, Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Gdiplus.lib |
Gdiplus.dll |
Windows |
GDI+ 1.0 |
19H1 |
|
|
|
|
|
|
The Point::operator+ method adds the X and Y data members of two Point objects.
Type: const Point
Reference to a Point object whose X and Y data members are added to the X and Y data members of this Point object.
Type: Point
This method returns a Point object that is the sum of two Point objects.
This method overloads the addition operator for Point objects. If A, B, and C are Point objects, the statement C = A + B is equivalent to C = A.operator+(B).
The following example creates two Point objects, then adds the two Point objects and stores the result in a third Point object.
Point point1(40, 10);
Point point2(20, 30);
// Point 3 now contains the coordinates (60, 40).
Point point3 = point1 + point2;