PathGradientBrush::PathGradientBrush method

Creates a PathGradientBrush object based on an array of points. Initializes the wrap mode of the path gradient brush.

Syntax

void PathGradientBrush(
  IN const PointF *points,
  IN INT          count,
  IN WrapMode     wrapMode
);

Parameters

points

Type: const PointF*

Pointer to an array of points that specifies the boundary path of the path gradient brush.

count

Type: INT

Integer that specifies the number of elements in the points array.

wrapMode

Type: WrapMode

Optional. Element of the WrapMode enumeration that specifies how areas painted with the path gradient brush will be tiled. The default value is WrapModeClamp.

Return Value

None

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdipluspath.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also

Brushes and Filled Shapes

Creating a Path Gradient

Filling a Shape with a Color Gradient

GraphicsPath

LinearGradientBrush

PathGradientBrush

PointF