术语 | setpolyfillmode |
释义 | SetPolyFillMode 语法: int SetPolyFillMode( __in HDC hdc, __in int iPolyFillMode ); SetPolyFillMode功能 该SetPolyFillMode函数设置多边形填充模式为函数填充多边形。 参数 hdc [in] 一个句柄,设备上下文。 iPolyFillMode [in] 新的填充模式。此参数可以是下列值之一。 ValueMeaning ALTERNATESelects替代模式(填补了奇数和偶数扫描线每双方多边形面积)。 WINDINGSelects绕组模式(填充与清盘值非零任何地区)。 返回值 返回值指定前填充模式。如果发生错误,返回值是零。 备注 在一般情况下,模式的区别仅在于一个复杂的情况下,重叠的多边形必须填写(例如,一个5边形,构成一五角星与在中心五边形星)。在这种情况下,每一个候补模式填充多边形内其他封闭区域(即恒星的点),但清盘模式填充所有区域(即点和五边形)。 当填充模式是候补,GDI的填补了奇数和偶数扫描线每双方多边形面积。也就是说,GDI的填补介于第一和第二个方面是地区之间,第三和第四方面,等等。 当填充模式是曲折的,GDI的填充任何地区具有非零清盘价值。此值定义为次数用于绘制多边形将继续在该地区的笔。每个多边形的边缘方向是重要的。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 地区概况 区域函数 GetPolyFillMode 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==SetPolyFillMode Function The SetPolyFillMode function sets the polygon fill mode for functions that fill polygons. Syntax int SetPolyFillMode( __in HDC hdc, __in int iPolyFillMode ); Parameters hdc [in] A handle to the device context. iPolyFillMode [in] The new fill mode. This parameter can be one of the following values. ValueMeaning ALTERNATESelects alternate mode (fills the area between odd-numbered and even-numbered polygon sides on each scan line). WINDINGSelects winding mode (fills any region with a nonzero winding value). Return Value The return value specifies the previous filling mode. If an error occurs, the return value is zero. Remarks In general, the modes differ only in cases where a complex, overlapping polygon must be filled (for example, a five-sided polygon that forms a five-pointed star with a pentagon in the center). In such cases, ALTERNATE mode fills every other enclosed region within the polygon (that is, the points of the star), but WINDING mode fills all regions (that is, the points and the pentagon). When the fill mode is ALTERNATE, GDI fills the area between odd-numbered and even-numbered polygon sides on each scan line. That is, GDI fills the area between the first and second side, between the third and fourth side, and so on. When the fill mode is WINDING, GDI fills any region that has a nonzero winding value. This value is defined as the number of times a pen used to draw the polygon would go around the region. The direction of each edge of the polygon is important. 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 GetPolyFillMode Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd145080(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。