Skip to content

Latest commit

 

History

History
190 lines (120 loc) · 5.35 KB

cd2dpathgeometry-class.md

File metadata and controls

190 lines (120 loc) · 5.35 KB
titledescriptionms.datef1_keywordshelpviewer_keywords
CD2DPathGeometry Class
Learn more about: CD2DPathGeometry Class
11/04/2016
CD2DPathGeometry
AFXRENDERTARGET/CD2DPathGeometry
AFXRENDERTARGET/CD2DPathGeometry::CD2DPathGeometry
AFXRENDERTARGET/CD2DPathGeometry::Attach
AFXRENDERTARGET/CD2DPathGeometry::Create
AFXRENDERTARGET/CD2DPathGeometry::Destroy
AFXRENDERTARGET/CD2DPathGeometry::Detach
AFXRENDERTARGET/CD2DPathGeometry::GetFigureCount
AFXRENDERTARGET/CD2DPathGeometry::GetSegmentCount
AFXRENDERTARGET/CD2DPathGeometry::Open
AFXRENDERTARGET/CD2DPathGeometry::Stream
AFXRENDERTARGET/CD2DPathGeometry::m_pPathGeometry
CD2DPathGeometry [MFC], CD2DPathGeometry
CD2DPathGeometry [MFC], Attach
CD2DPathGeometry [MFC], Create
CD2DPathGeometry [MFC], Destroy
CD2DPathGeometry [MFC], Detach
CD2DPathGeometry [MFC], GetFigureCount
CD2DPathGeometry [MFC], GetSegmentCount
CD2DPathGeometry [MFC], Open
CD2DPathGeometry [MFC], Stream
CD2DPathGeometry [MFC], m_pPathGeometry

CD2DPathGeometry Class

A wrapper for ID2D1PathGeometry.

Syntax

class CD2DPathGeometry : public CD2DGeometry; 

Members

Public Constructors

NameDescription
CD2DPathGeometry::CD2DPathGeometryConstructs a CD2DPathGeometry object.

Public Methods

NameDescription
CD2DPathGeometry::AttachAttaches existing resource interface to the object
CD2DPathGeometry::CreateCreates a CD2DPathGeometry. (Overrides CD2DResource::Create.)
CD2DPathGeometry::DestroyDestroys a CD2DPathGeometry object. (Overrides CD2DGeometry::Destroy.)
CD2DPathGeometry::DetachDetaches resource interface from the object
CD2DPathGeometry::GetFigureCountRetrieves the number of figures in the path geometry.
CD2DPathGeometry::GetSegmentCountRetrieves the number of segments in the path geometry.
CD2DPathGeometry::OpenRetrieves the geometry sink that is used to populate the path geometry with figures and segments.
CD2DPathGeometry::StreamCopies the contents of the path geometry to the specified ID2D1GeometrySink.

Protected Data Members

NameDescription
CD2DPathGeometry::m_pPathGeometryA pointer to an ID2D1PathGeometry.

Inheritance Hierarchy

CObject

CD2DResource

CD2DGeometry

CD2DPathGeometry

Requirements

Header: afxrendertarget.h

CD2DPathGeometry::Attach

Attaches existing resource interface to the object

voidAttach(ID2D1PathGeometry* pResource);

Parameters

pResource
Existing resource interface. Cannot be NULL

CD2DPathGeometry::CD2DPathGeometry

Constructs a CD2DPathGeometry object.

CD2DPathGeometry( CRenderTarget* pParentTarget, BOOL bAutoDestroy = TRUE); 

Parameters

pParentTarget
A pointer to the render target.

bAutoDestroy
Indicates that the object will be destroyed by owner (pParentTarget).

CD2DPathGeometry::Create

Creates a CD2DPathGeometry.

virtual HRESULT Create(CRenderTarget* pRenderTarget); 

Parameters

pRenderTarget
A pointer to the render target.

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

CD2DPathGeometry::Destroy

Destroys a CD2DPathGeometry object.

virtual void Destroy(); 

CD2DPathGeometry::Detach

Detaches resource interface from the object

ID2D1PathGeometry* Detach(); 

Return Value

Pointer to detached resource interface.

CD2DPathGeometry::GetFigureCount

Retrieves the number of figures in the path geometry.

int GetFigureCount() const; 

Return Value

Returns the number of figures in the path geometry.

CD2DPathGeometry::GetSegmentCount

Retrieves the number of segments in the path geometry.

int GetSegmentCount() const; 

Return Value

Returns the number of segments in the path geometry.

CD2DPathGeometry::m_pPathGeometry

A pointer to an ID2D1PathGeometry.

ID2D1PathGeometry* m_pPathGeometry; 

CD2DPathGeometry::Open

Retrieves the geometry sink that is used to populate the path geometry with figures and segments.

ID2D1GeometrySink* Open(); 

Return Value

A pointer to the ID2D1GeometrySink that is used to populate the path geometry with figures and segments.

CD2DPathGeometry::Stream

Copies the contents of the path geometry to the specified ID2D1GeometrySink.

BOOL Stream(ID2D1GeometrySink* geometrySink); 

Parameters

geometrySink
The sink to which the path geometry's contents are copied. Modifying this sink does not change the contents of this path geometry.

Return Value

If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.

See also

Classes

close