网站首页  词典首页

请输入您要查询的函数:

 

术语 polygon
释义 Polygon
语法:
BOOL Polygon(
__in HDC hdc,
__in const POINT *lpPoints,
__in int nCount
);
多边形功能
在多边形函数绘制一个多边形由直线连接两个或多个顶点组成。概述的多边形使用目前的笔和使用当前画笔和多边形填充模式填补。
参数
hdc [in]
一个句柄,设备上下文。
lpPoints [in]
对一个Point结构数组的指针,指定的多边形的顶点,在逻辑坐标。
nCount [in]
数组中的顶点数目。此值必须大于或等于2。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
多边形关闭自动绘制从上顶点行第一。
当前位置是既没使用也没更新的多边形功能。
任何额外的点被忽略。为了吸引更多的积分与线,您的数据划分成小组,每个小组有超过满分的少,并要求各组点的功能。请记住连接线段。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
填充形状概述
填充形状函数
GetPolyFillMode

折线
PolylineTo
PolyPolygon
SetPolyFillMode
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==Polygon Function
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.
Syntax
BOOL Polygon(
__in HDC hdc,
__in const POINT *lpPoints,
__in int nCount
);
Parameters
hdc [in]
A handle to the device context.
lpPoints [in]
A pointer to an array of POINT structures that specify the vertices of the polygon, in logical coordinates.
nCount [in]
The number of vertices in the array. This value must be greater than or equal to 2.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The polygon is closed automatically by drawing a line from the last vertex to the first.
The current position is neither used nor updated by the Polygon function.
Any extra points are ignored. To draw a line with more points, divide your data into groups, each of which have less than the maximum number of points, and call the function for each group of points. Remember to connect the line segments.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Filled Shapes Overview
Filled Shape Functions
GetPolyFillMode
POINT
Polyline
PolylineTo
PolyPolygon
SetPolyFillMode
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162814(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:17