PathGradientBrush::SetCenterPoint 方法设置此路径渐变画笔的中心点。 默认情况下,中心点位于画笔边界路径的质心处,但你可以将中心点设置为路径内外的任何位置。
语法
Status SetCenterPoint(
  [in, ref] const Point & point
);
参数
[in, ref] point
类型: const Point
对指定中心点的 Point 对象的引用。
返回值
类型: 状态
如果方法成功,则返回 Ok,这是 Status 枚举的元素。
如果 方法失败,它将返回 Status 枚举的其他元素之一。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] | 
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdipluspath.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll | 
另请参阅
PathGradientBrush::GetCenterColor