Skip to content

Latest commit

 

History

History
104 lines (72 loc) · 3.56 KB

nf-gdiplustypes-pointf-operator-add.md

File metadata and controls

104 lines (72 loc) · 3.56 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.PointF.operator-add
PointF::operator-add (gdiplustypes.h)
The PointF::operator+ method adds the X and Y data members of two PointF objects.
PointF class [GDI+]
operator+ method
PointF.operator+
PointF.operator+(const PointF&)
PointF.operator-add
PointF::operator+
PointF::operator-add
_gdiplus_CLASS_PointF_operator_opadd_point_
gdiplus._gdiplus_CLASS_PointF_operator_opadd_point_
operator+
operator+ method [GDI+]
operator+ method [GDI+]
PointF class
gdiplus\_gdiplus_CLASS_PointF_operator_opadd_point_.htm
gdiplus
VS|gdicpp|~\gdiplus\gdiplusreference\classes\pointfclass\pointfmethods\operatorplus_90point.htm
12/05/2018
PointF class [GDI+],operator+ method, PointF.operator+, PointF.operator+(const PointF&), PointF.operator-add, PointF::operator+, PointF::operator-add, _gdiplus_CLASS_PointF_operator_opadd_point_, gdiplus._gdiplus_CLASS_PointF_operator_opadd_point_, operator+, operator+ method [GDI+], operator+ method [GDI+],PointF 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
PointF::operator+
gdiplustypes/PointF::operator+
c++
APIRef
kbSyntax
COM
Gdiplus.dll
PointF.operator+

PointF::operator-add

-description

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

-parameters

-param point [in, ref]

Type: const PointF

Reference to a PointF object whose X and Y data members are added to the X and Y data members of this PointF object.

-returns

Type: PointF

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

-remarks

This method overloads the addition operator for PointF objects. If A, B, and C are PointF objects, the statement C = A + B is equivalent to C = A.operator+(B).

Examples

The following example creates two PointF objects, then adds the two PointF objects and stores the result in a third PointF object.

PointF point1(40.0f, 10.0f);
PointF point2(20.0f, 30.0f);

// Point3 now contains the coordinates (60.0f, 40.0f).
PointF point3 = point1 + point2; 

-see-also

Equals

Point

PointF

operator-