RadialGradientBrushProperties function (d2d1helper.h)

Creates a D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES structure.

Syntax

D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES RadialGradientBrushProperties(
  [in, ref] const D2D1_POINT_2F & center,
  [in, ref] const D2D1_POINT_2F & gradientOriginOffset,
  [in]      FLOAT                 radiusX,
  [in]      FLOAT                 radiusY
);

Parameters

[in, ref] center

Type: const D2D1_POINT_2F

In the brush's coordinate space, the center of the gradient ellipse.

[in, ref] gradientOriginOffset

Type: const D2D1_POINT_2F

In the brush's coordinate space, the offset of the gradient origin relative to the gradient ellipse's center.

[in] radiusX

Type: const FLOAT

In the brush's coordinate space, the x-radius of the gradient ellipse.

[in] radiusY

Type: const FLOAT

In the brush's coordinate space, the y-radius of the gradient ellipse.

Return value

Type: D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES

A structure that contains the gradient origin offset and the size and position of the gradient ellipse for an ID2D1RadialGradientBrush.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1helper.h
Library D2d1.lib
DLL D2d1.dll