ID2D1RenderTarget::CreateRadialGradientBrush method

Creates an ID2D1RadialGradientBrush object that can be used to paint areas with a radial gradient.

Overload list

Method Description
CreateRadialGradientBrush(D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES&,ID2D1GradientStopCollection*,ID2D1RadialGradientBrush**) Creates an ID2D1RadialGradientBrush that contains the specified gradient stops, has no transform, and has a base opacity of 1.0.
CreateRadialGradientBrush(D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES&,D2D1_BRUSH_PROPERTIES&,ID2D1GradientStopCollection*,ID2D1RadialGradientBrush**) Creates an ID2D1RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
CreateRadialGradientBrush(D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES*,D2D1_BRUSH_PROPERTIES*,ID2D1GradientStopCollection*,ID2D1RadialGradientBrush**) Creates an ID2D1RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

Syntax

HRESULT CreateRadialGradientBrush(
  const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties,
  const D2D1_BRUSH_PROPERTIES                 *brushProperties,
  ID2D1GradientStopCollection                 *gradientStopCollection,
  ID2D1RadialGradientBrush                    **radialGradientBrush
);

Parameters

radialGradientBrushProperties

brushProperties

gradientStopCollection

radialGradientBrush

Return Value

None

Requirements

   
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See Also

Brushes Overview

How to Create a Radial Gradient Brush

ID2D1RenderTarget