导航:  GdiPlus Classes > GdiPlus Classes > CGpBrush Class > CGpPathGradientBrush Class > PathGradientBrush Object >

Constructors

上一页返回章节概述下一页

描述

 

创建一个PathGradientBrush对象.

 

C++ Syntax

 

PathGradientBrush(

   [in]  const Point *points,

   [in]  INT count,

   [in]  WrapMode wrapMode

);

 

PathGradientBrush(

   [in]  const PointF *points,

   [in]  INT count,

   [in]  WrapMode wrapMode

);

 

PathGradientBrush(

   [in]  const GraphicsPath *path

);

 

FreeBASIC 语法

 

创建一个基于点的数组PathGradientBrush对象.初始化路径渐变画笔的包模式.

 

CONSTRUCTOR CGpPathGradientBrush ( _

   BYVAL pts AS GpPointF PTR, _

   BYVAL nCount AS LONG, _

   BYVAL nWrapMode AS WrapMode = WrapModeClamp _

)

 

创建一个基于点的数组PathGradientBrush对象.初始化路径渐变画笔的包模式.

 

CONSTRUCTOR CGpPathGradientBrush ( _

   BYVAL pts AS GpPoint PTR, _

   BYVAL nCount AS LONG, _

   BYVAL nWrapMode AS WrapMode = WrapModeClamp _

)

 

创建一个基于GraphicsPath对象PathGradientBrush对象.

 

CONSTRUCTOR CGpPathGradientBrush ( _

   BYVAL pGraphPath AS CGpGraphicsPath PTR _

)

 

参数

 

pts

 

[in]数组的指针点指定路径渐变画笔边界路径.

 

nCount

 

[in]整数,指定在pts数组元素个数.

 

nWrapMode

 

[in]可选.该WrapMode枚举指定如何区画用路径渐变画笔将平铺元.默认值是WrapModeClamp.

 

pGraphPath

 

[in]指向GraphicsPath对象指定路径渐变画笔边界路径.

 

引用文件

 

CGpBrush.inc (include CGdipPlus.inc)