描述
WidenPath函数将当前路径重新定义为要使用当前选定的笔在指定设备上下文中绘制路径时绘制的区域。
C++ 语法
BOOL WidenPath( __in HDC hdc ); |
PowerBASIC 语法
FUNCTION WidenPath ( _ BYVAL hdc AS DWORD _ ) AS LONG |
参数
hdc
[in]处理包含封闭路径的设备上下文。
返回值
如果函数成功,返回值不为零。
如果函数失败,返回值为零。
Windows NT / 2000 / XP / Vista / Windows 7:GetLastError可能会返回以下错误代码之一:
ERROR_CAN_NOT_COMPLETE
ERROR_INVALID_PARAMETER
ERROR_NOT_ENOUGH_MEMORY
备注
WidenPath功能仅在当前笔是由ExtCreatePen功能创建的几何笔时才能成功,或者如果笔以CreatePen功能创建,并且具有多个设备单位的宽度。
由hDC参数标识的设备上下文必须包含封闭路径。
Any B鑪ier curves in the path are converted to sequences of straight lines approximating the widened curves.As such, no B鑪ier curves remain in the path after WidenPath is called.
引用文件 #INCLUDE Once
WinGdi.inc(包括Windows.inc)