|
发表于 2009-5-7 11:32:56
|
显示全部楼层
原帖由 八戒2 于 2009-5-6 23:30 发表
ben1222,好快啊
使用API不算,但可以用它来验证
哈哈,八戒也看出了是用 API的?
我只看到了一个:
Polygon
The Polygon function draws a polygon consisting of two or more vertices connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.
BOOL Polygon(
HDC hdc, // handle to device context
CONST POINT *lpPoints, // pointer to polygon's vertices
int nCount // count of polygon's vertices
);
Parameters
hdc
Handle to the device context.
lpPoints
Pointer to an array of POINT structures that specify the vertices of the polygon.
nCount
Specifies the number of vertices in the array. This value must be greater than or equal to 2.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
至于交集的颜色不同估计是用了 XOR 画笔来填充两个多边形吧。。。
[ 本帖最后由 VBProFan 于 2009-5-7 11:35 编辑 ] |
|