Share via


CD2DLinearGradientBrush Class

A wrapper for ID2D1LinearGradientBrush.

class CD2DLinearGradientBrush : public CD2DGradientBrush;

Members

Public Constructors

Name

Description

CD2DLinearGradientBrush::CD2DLinearGradientBrush

Constructs a CD2DLinearGradientBrush object.

CD2DLinearGradientBrush::~CD2DLinearGradientBrush

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

Public Methods

Name

Description

CD2DLinearGradientBrush::Attach

Attaches existing resource interface to the object

CD2DLinearGradientBrush::Create

Creates a CD2DLinearGradientBrush. (Overrides CD2DResource::Create.)

CD2DLinearGradientBrush::Destroy

Destroys a CD2DLinearGradientBrush object. (Overrides CD2DGradientBrush::Destroy.)

CD2DLinearGradientBrush::Detach

Detaches resource interface from the object

CD2DLinearGradientBrush::Get

Returns ID2D1LinearGradientBrush interface

CD2DLinearGradientBrush::GetEndPoint

Retrieves the ending coordinates of the linear gradient

CD2DLinearGradientBrush::GetStartPoint

Retrieves the starting coordinates of the linear gradient

CD2DLinearGradientBrush::SetEndPoint

Sets the ending coordinates of the linear gradient in the brush's coordinate space

CD2DLinearGradientBrush::SetStartPoint

Sets the starting coordinates of the linear gradient in the brush's coordinate space

Public Operators

Name

Description

CD2DLinearGradientBrush::operator ID2D1LinearGradientBrush*

Returns ID2D1LinearGradientBrush interface

Protected Data Members

Name

Description

CD2DLinearGradientBrush::m_LinearGradientBrushProperties

The start and end points of the gradient.

CD2DLinearGradientBrush::m_pLinearGradientBrush

A pointer to an ID2D1LinearGradientBrush.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

CD2DGradientBrush

CD2DLinearGradientBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes