网站首页  词典首页

请输入您要查询的函数:

 

术语 extfloodfill
释义 ExtFloodFill
语法:
BOOL ExtFloodFill(
__in HDC hdc,
__in int nXStart,
__in int nYStart,
__in COLORREF crColor,
__in UINT fuFillType
);
ExtFloodFill函数
该ExtFloodFill函数填充一个与当前画笔展示面积。
参数
hdc [in]
一个句柄,设备上下文。
nXStart [in]
的x坐标,按逻辑单位,以至于灌装是开始。
nYStart [in]
The y-coordinate, in logical units, of the point where filling is to start.
crColor [in]
边界或地区要填充的颜色。在crColor解释取决于该fuFillType参数的值。要创建一个COLORREF颜色值,使用RGB宏。
fuFillType [in]
该术式的填写要执行。此参数必须是下列值之一。
ValueMeaning
FLOODFILLBORDERThe填充面积由crColor参数指定的颜色范围。此样式是相同的填补了FloodFill履行的职能。
FLOODFILLSURFACEThe填充区域是由是由crColor指定颜色的定义。灌装,只要继续在各个方向向外因为遇到的颜色。这种风格是有用的填充五彩边界地区。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
以下是此功能的原因有可能失败:
灌装无法完成。
指定点的边界颜色由crColor参数指定(如果FLOODFILLBORDER要求)。
指定点并没有由crColor指定的颜色(如果FLOODFILLSURFACE要求)。
点外裁剪regionthat是,它是不可见的设备上。
如果fuFillType参数FLOODFILLBORDER,系统假设该地区完全填补由crColor参数指定的颜色范围。函数开始填补了nXStart和nYStart参数指定的点,并在各个方向继续进行,直到它到达边界。
如果fuFillType是FLOODFILLSURFACE,系统假设该地区填补是一个单一的颜色。函数开始填补指定的点的地区nXStart和nYStart并向各个方向继续下去,填补所有含由crColor指定颜色的邻近地区。
只有内存设备上下文和设备,支持光栅显示器业务支持ExtFloodFill函数。要确定设备是否支持这一技术,使用GetDeviceCaps函数。
实例
有关示例,请参见“添加一个菜单”的使用菜单线和图表的。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
FloodFill
GetDeviceCaps
COLORREF
的RGB
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ExtFloodFill Function
The ExtFloodFill function fills an area of the display surface with the current brush.
Syntax
BOOL ExtFloodFill(
__in HDC hdc,
__in int nXStart,
__in int nYStart,
__in COLORREF crColor,
__in UINT fuFillType
);
Parameters
hdc [in]
A handle to a device context.
nXStart [in]
The x-coordinate, in logical units, of the point where filling is to start.
nYStart [in]
The y-coordinate, in logical units, of the point where filling is to start.
crColor [in]
The color of the boundary or of the area to be filled. The interpretation of crColor depends on the value of the fuFillType parameter. To create a COLORREF color value, use the RGB macro.
fuFillType [in]
The type of fill operation to be performed. This parameter must be one of the following values.
ValueMeaning
FLOODFILLBORDERThe fill area is bounded by the color specified by the crColor parameter. This style is identical to the filling performed by the FloodFill function.
FLOODFILLSURFACEThe fill area is defined by the color that is specified by crColor. Filling continues outward in all directions as long as the color is encountered. This style is useful for filling areas with multicolored boundaries.

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The following are some of the reasons this function might fail:
The filling could not be completed.
The specified point has the boundary color specified by the crColor parameter (if FLOODFILLBORDER was requested).
The specified point does not have the color specified by crColor (if FLOODFILLSURFACE was requested).
The point is outside the clipping regionthat is, it is not visible on the device.
If the fuFillType parameter is FLOODFILLBORDER, the system assumes that the area to be filled is completely bounded by the color specified by the crColor parameter. The function begins filling at the point specified by the nXStart and nYStart parameters and continues in all directions until it reaches the boundary.
If fuFillType is FLOODFILLSURFACE, the system assumes that the area to be filled is a single color. The function begins to fill the area at the point specified by nXStart and nYStart and continues in all directions, filling all adjacent regions containing the color specified by crColor.
Only memory device contexts and devices that support raster-display operations support the ExtFloodFill function. To determine whether a device supports this technology, use the GetDeviceCaps function.
Examples
For an example, see "Adding Lines and Graphs to a Menu" in Using Menus .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Bitmaps Overview
Bitmap Functions
FloodFill
GetDeviceCaps
COLORREF
RGB
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162709(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 11:24:29