Share via


CD2DResource Class

An abstract class that provides a interface for creating and managing D2D resources such as brushes, layers, and texts.

class CD2DResource : public CObject;

Members

Protected Constructors

Name

Description

CD2DResource::CD2DResource

Constructs a CD2DResource object.

CD2DResource::~CD2DResource

The destructor. Called when a D2D resource object is being destroyed.

Public Methods

Name

Description

CD2DResource::Create

Creates a CD2DResource.

CD2DResource::Destroy

Destroys a CD2DResource object.

CD2DResource::IsValid

Checks resource validity

Protected Methods

Name

Description

CD2DResource::IsAutoDestroy

Check auto destroy flag.

CD2DResource::ReCreate

Re-creates a CD2DResource.

Protected Data Members

Name

Description

CD2DResource::m_bIsAutoDestroy

Resource will be destoyed by owner (CRenderTarget)

CD2DResource::m_pParentTarget

Pointer to the parent CRenderTarget)

Inheritance Hierarchy

CObject

CD2DResource

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes