Delen via


CD2DGradientBrush Class

The base class of the CD2DLinearGradientBrush and the CD2DRadialGradientBrush classes.

class CD2DGradientBrush : public CD2DBrush;

Members

Public Constructors

Name

Description

CD2DGradientBrush::CD2DGradientBrush

Constructs a CD2DGradientBrush object.

CD2DGradientBrush::~CD2DGradientBrush

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

Protected Methods

Name

Description

CD2DGradientBrush::Destroy

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

Protected Data Members

Name

Description

CD2DGradientBrush::m_arGradientStops

Array of the D2D1_GRADIENT_STOP structures.

CD2DGradientBrush::m_colorInterpolationGamma

The space in which color interpolation between the gradient stops is performed.

CD2DGradientBrush::m_extendMode

The behavior of the gradient outside the [0,1] normalized range.

CD2DGradientBrush::m_pGradientStops

A pointer to an array of D2D1_GRADIENT_STOP structures.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

CD2DGradientBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes