CD2DPointF Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CD2DPointF Class.

A wrapper for D2D1_POINT_2F.

class CD2DPointF : public D2D1_POINT_2F;  

Public Constructors

NameDescription
CD2DPointF::CD2DPointFOverloaded. Constructs a CD2DPointF object from D2D1_POINT_2F object.

Public Operators

NameDescription
CD2DPointF::operator CPointConverts CD2DPointF to CPoint object.

D2D1_POINT_2F

CD2DPointF

Header: afxrendertarget.h

Constructs a CD2DPointF object from CPoint object.

CD2DPointF(const CPoint& pt);    
CD2DPointF(const D2D1_POINT_2F& pt);    
CD2DPointF(const D2D1_POINT_2F* pt); 
CD2DPointF(FLOAT fX = 0., FLOAT fY = 0.);

Parameters

pt
source point

fX
source X

fY
source Y

Converts CD2DPointF to CPoint object.

operator CPoint();

Return Value

Current value of D2D point.

Classes

Show: