网站首页  词典首页

请输入您要查询的函数:

 

术语 createpolygonrgn
释义 CreatePolygonRgn
语法:
HRGN CreatePolygonRgn(
__in const POINT *lppt,
__in int cPoints,
__in int fnPolyFillMode
);
CreatePolygonRgn函数
该CreatePolygonRgn函数创建一个多边形区域。
参数
lppt [in]
对一个Point结构数组的指针,定义在逻辑单元多边形的顶点。多边形则推定关闭。每个顶点只能指定一次。
cPoints [in]
数组中的点数。
fnPolyFillMode [in]
填充模式用于确定哪些像素在该区域。此参数可以是下列值之一。
ValueMeaning
ALTERNATESelects替代模式(填补之间的奇数和偶数扫描线每双方多边形面积)。
WINDINGSelects绕组模式(填充与清盘值非零任何地区)。
如需有关这些模式的详细信息,请参阅SetPolyFillMode功能。
返回值
如果函数成功,返回值是处理该地区。
如果函数失败,返回值为NULL。
备注
当您不再需要HRGN对象,调用DeleteObject函数将其删除。
地区坐标表示为27位有符号整数。
通过创建 Rgn方法(如CreateRectRgn和CreatePolygonRgn)只包括形状的内部,该形状的轮廓是来自该地区之外创建的地区。这意味着,任何在连续两个顶点线点不在该区域。如果您要求提供这种点PtInRegion,它将返回零的结果。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
地区概况
区域函数
CreatePolyPolygonRgn
CreateRectRgn
CreateRectRgnIndirect
CreateRoundRectRgn
ExtCreateRegion
GetRegionData
DeleteObject

SelectObject
SetPolyFillMode
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreatePolygonRgn Function
The CreatePolygonRgn function creates a polygonal region.
Syntax
HRGN CreatePolygonRgn(
__in const POINT *lppt,
__in int cPoints,
__in int fnPolyFillMode
);
Parameters
lppt [in]
A pointer to an array of POINT structures that define the vertices of the polygon in logical units. The polygon is presumed closed. Each vertex can be specified only once.
cPoints [in]
The number of points in the array.
fnPolyFillMode [in]
The fill mode used to determine which pixels are in the region. This parameter can be one of the following values.
ValueMeaning
ALTERNATESelects alternate mode (fills area between odd-numbered and even-numbered polygon sides on each scan line).
WINDINGSelects winding mode (fills any region with a nonzero winding value).

For more information about these modes, see the SetPolyFillMode function.
Return Value
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is NULL.
Remarks
When you no longer need the HRGN object, call the DeleteObject function to delete it.
Region coordinates are represented as 27-bit signed integers.
Regions created by the CreateRgn methods (such as CreateRectRgn and CreatePolygonRgn) only include the interior of the shape; the shape's outline is excluded from the region. This means that any point on a line between two sequential vertices is not included in the region. If you were to call PtInRegion for such a point, it would return zero as the result.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Regions Overview
Region Functions
CreatePolyPolygonRgn
CreateRectRgn
CreateRectRgnIndirect
CreateRoundRectRgn
ExtCreateRegion
GetRegionData
DeleteObject
POINT
SelectObject
SetPolyFillMode
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183511(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:24:27