Skip to content

Latest commit

 

History

History
104 lines (72 loc) · 3.5 KB

nf-gdiplustypes-point-operator-add.md

File metadata and controls

104 lines (72 loc) · 3.5 KB
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.
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
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
Point::operator+
gdiplustypes/Point::operator+
c++
APIRef
kbSyntax
COM
Gdiplus.dll
Point.operator+

Point::operator-add

-description

The Point::operator+ method adds the X and Y data members of two Point objects.

-parameters

-param point [in, ref]

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.

-returns

Type: Point

This method returns a Point object that is the sum of two Point objects.

-remarks

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).

Examples

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; 

-see-also

Point

Point::Equals

Point::operator-

PointF