Share via


CD2DRadialGradientBrush Class

A wrapper for ID2D1RadialGradientBrush.

class CD2DRadialGradientBrush : public CD2DGradientBrush;

Members

Public Constructors

Name

Description

CD2DRadialGradientBrush::CD2DRadialGradientBrush

Constructs a CD2DLinearGradientBrush object.

CD2DRadialGradientBrush::~CD2DRadialGradientBrush

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

Public Methods

Name

Description

CD2DRadialGradientBrush::Attach

Attaches existing resource interface to the object

CD2DRadialGradientBrush::Create

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

CD2DRadialGradientBrush::Destroy

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

CD2DRadialGradientBrush::Detach

Detaches resource interface from the object

CD2DRadialGradientBrush::Get

Returns ID2D1RadialGradientBrush interface

CD2DRadialGradientBrush::GetCenter

Retrieves the center of the gradient ellipse

CD2DRadialGradientBrush::GetGradientOriginOffset

Retrieves the offset of the gradient origin relative to the gradient ellipse's center

CD2DRadialGradientBrush::GetRadiusX

Retrieves the x-radius of the gradient ellipse

CD2DRadialGradientBrush::GetRadiusY

Retrieves the y-radius of the gradient ellipse

CD2DRadialGradientBrush::SetCenter

Specifies the center of the gradient ellipse in the brush's coordinate space

CD2DRadialGradientBrush::SetGradientOriginOffset

Specifies the offset of the gradient origin relative to the gradient ellipse's center

CD2DRadialGradientBrush::SetRadiusX

Specifies the x-radius of the gradient ellipse, in the brush's coordinate space

CD2DRadialGradientBrush::SetRadiusY

Specifies the y-radius of the gradient ellipse, in the brush's coordinate space

Public Operators

Name

Description

CD2DRadialGradientBrush::operator ID2D1RadialGradientBrush*

Returns ID2D1RadialGradientBrush interface

Protected Data Members

Name

Description

CD2DRadialGradientBrush::m_pRadialGradientBrush

A pointer to an ID2D1RadialGradientBrush.

CD2DRadialGradientBrush::m_RadialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's gradient.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

CD2DGradientBrush

CD2DRadialGradientBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes