描述
The PolyBezierTo function draws one or more B閦ier curves.
C++ 语法
BOOL PolyBezierTo( __in HDC hdc, __in const POINT* lppt, __in DWORD cCount ); |
PowerBASIC 语法
FUNCTION PolyBezierTo ( _ BYVAL hdc AS DWORD, _ BYREF lppt AS POINT, _ BYVAL cCount AS DWORD _ ) AS LONG |
参数
hdc
[in]处理设备上下文。
lppt
[in]以逻辑单位指向包含曲线的端点和控制点的POINT结构数组的指针。
cCount
[in]指定LPPT数组中的点数。This value must be three times the number of curves to be drawn, because each B閦ier curve requires two control points and an ending point.
返回值
如果函数成功,返回值不为零。
如果函数失败,返回值为零。
备注
This function draws cubic B閦ier curves by using the control points specified by the lppt parameter.通过使用前两个点作为控制点,将第一个曲线从当前位置绘制到第三个点。对于每个后续曲线,该函数只需要三个点,并使用前一曲线的终点作为下一个曲线的起始点。
PolyBezierTo moves the current position to the ending point of the last B閦ier curve.该图未填写。
此函数使用当前笔绘制线条。
Windows 95/98 / Me:PolyBezierTo无法绘制超过一定数量的积分。限制取决于线宽(即选择到DC的笔的宽度),如下表所示。
行宽 |
允许的最大点数 |
线宽为1 |
16K |
线宽>1(即,宽线)和设备支持wideline |
16K |
行宽度>1,但设备不支持wideline |
约1360(即约16K / 12) |
任何额外的点都被忽略。为了绘制更多点的线,将数据分成具有小于最大点数的组,并调用每组点的函数。记住连接线段。
引用文件 #INCLUDE Once
WinGdi.inc(包括Windows.inc)