CD2DBrush Class

Visual Studio 2010 SP1 is required.

A wrapper for ID2D1Brush.

class CD2DBrush : public CD2DResource;

Members

Protected Constructors

Name

Description

CD2DBrush::CD2DBrush

Constructs a CD2DBrush object.

CD2DBrush::~CD2DBrush

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

Public Methods

Name

Description

CD2DBrush::Attach

Attaches existing resource interface to the object

CD2DBrush::Destroy

Destroys a CD2DBrush object. (Overrides CD2DResource::Destroy.)

CD2DBrush::Detach

Detaches resource interface from the object

CD2DBrush::Get

Returns ID2D1Brush interface

CD2DBrush::GetOpacity

Gets the degree of opacity of this brush

CD2DBrush::GetTransform

Gets the current transform of the render target

CD2DBrush::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

CD2DBrush::SetOpacity

Sets the degree of opacity of this brush

CD2DBrush::SetTransform

Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space

Public Operators

Name

Description

CD2DBrush::operator ID2D1Brush*

Returns ID2D1Brush interface

Protected Data Members

Name

Description

CD2DBrush::m_pBrush

Stores a pointer to an ID2D1Brush object.

CD2DBrush::m_pBrushProperties

Brush properties.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes