网站首页  词典首页

请输入您要查询的函数:

 

术语 patblt
释义 PatBlt
语法:
BOOL PatBlt(
__in HDC hdc,
__in int nXLeft,
__in int nYLeft,
__in int nWidth,
__in int nHeight,
__in DWORD dwRop
);
PatBlt函数
油漆的PatBlt函数指定的矩形使用当前到指定的设备上下文选定的画笔。刷颜色和表面颜色或颜色组合使用指定的光栅操作。
参数
hdc [in]
一个句柄,设备上下文。
nXLeft [in]
的x坐标,按逻辑单位,矩形的左上角填补。
nYLeft [in]
在y坐标,按逻辑单位的矩形的左上角,填补。
nWidth [in]
宽度,按逻辑单位,矩形的。
nHeight [in]
的高度,以逻辑单位,矩形的。
dwRop [in]
光栅操作码。此代码可以是下列值之一。
ValueMeaning
PATCOPYCopies到目标位图指定的模式。
PATINVERTCombines的颜色使用布尔XOR运算的与目标矩形的颜色指定模式。
DSTINVERTInverts目标矩形。
BLACKNESSFills目标矩形使用索引的物理调色板0有关的颜色。 (这颜色是黑色的默认物理调色板。)
WHITENESSFills目标矩形使用索引的物理调色板1有关的颜色。 (这颜色是白色的默认物理调色板。)
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
在此函数dwRop参数的值是一个完整的256个三元光栅的有限子集,操作码,尤其是操作代码,指的是源矩形不能使用。
并非所有设备都支持PatBlt功能。有关详细信息,请参阅在GetDeviceCaps函数RC_BITBLT能力的描述。
实例
有关示例,请参见“菜单的例子,在使用菜单项位图”。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
GetDeviceCaps
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==PatBlt Function
The PatBlt function paints the specified rectangle using the brush that is currently selected into the specified device context. The brush color and the surface color or colors are combined by using the specified raster operation.
Syntax
BOOL PatBlt(
__in HDC hdc,
__in int nXLeft,
__in int nYLeft,
__in int nWidth,
__in int nHeight,
__in DWORD dwRop
);
Parameters
hdc [in]
A handle to the device context.
nXLeft [in]
The x-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
nYLeft [in]
The y-coordinate, in logical units, of the upper-left corner of the rectangle to be filled.
nWidth [in]
The width, in logical units, of the rectangle.
nHeight [in]
The height, in logical units, of the rectangle.
dwRop [in]
The raster operation code. This code can be one of the following values.
ValueMeaning
PATCOPYCopies the specified pattern into the destination bitmap.
PATINVERTCombines the colors of the specified pattern with the colors of the destination rectangle by using the Boolean XOR operator.
DSTINVERTInverts the destination rectangle.
BLACKNESSFills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)
WHITENESSFills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The values of the dwRop parameter for this function are a limited subset of the full 256 ternary raster-operation codes; in particular, an operation code that refers to a source rectangle cannot be used.
Not all devices support the PatBlt function. For more information, see the description of the RC_BITBLT capability in the GetDeviceCaps function.
Examples
For an example, see "Example of Menu-Item Bitmaps" 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
Brushes Overview
Brush Functions
GetDeviceCaps
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162778(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:16:05