网站首页  词典首页

请输入您要查询的函数:

 

术语 getrop2
释义 GetROP2
语法:
int GetROP2(
__in HDC hdc
);
GetROP2功能
该GetROP2函数检索指定的设备上下文前景混合模式。在混合模式指定如何钢笔或内饰颜色,并已在屏幕上的颜色相结合,以产生新的颜色。
参数
hdc [in]
句柄设备上下文。
返回值
如果函数成功,返回值指定前景混合模式。
如果函数失败,返回值是零。
备注
以下是前台组合模式。
混合modeDescription
R2_BLACKPixel始终为0。
R2_COPYPENPixel是笔的颜色。
R2_MASKNOTPENPixel是一个共同的颜色都在屏幕和笔逆组合。
R2_MASKPENPixel是双方共同的颜色笔和屏幕的组合。
R2_MASKPENNOTPixel是双方共同的颜色笔和屏幕的逆组合。
R2_MERGENOTPENPixel是屏幕的色彩组合和笔的颜色相反。
R2_MERGEPENPixel是笔的颜色组合,以及屏幕的颜色。
R2_MERGEPENNOTPixel是笔颜色组合,以及屏幕的颜色相反。
R2_NOPPixel保持不变。
R2_NOTPixel是在屏幕的颜色相反。
R2_NOTCOPYPENPixel是笔的颜色相反。
R2_NOTMASKPENPixel是R2_MASKPEN颜色逆。
R2_NOTMERGEPENPixel是R2_MERGEPEN颜色逆。
R2_NOTXORPENPixel是R2_XORPEN颜色逆。
R2_WHITEPixel始终为1。
R2_XORPENPixel是在笔的颜色组合,并在屏幕上,而不是两个。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
绘画和绘图概述
绘画和绘图功能
SetROP2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetROP2 Function
The GetROP2 function retrieves the foreground mix mode of the specified device context. The mix mode specifies how the pen or interior color and the color already on the screen are combined to yield a new color.
Syntax
int GetROP2(
__in HDC hdc
);
Parameters
hdc [in]
Handle to the device context.
Return Value
If the function succeeds, the return value specifies the foreground mix mode.
If the function fails, the return value is zero.
Remarks
Following are the foreground mix modes.
Mix modeDescription
R2_BLACKPixel is always 0.
R2_COPYPENPixel is the pen color.
R2_MASKNOTPENPixel is a combination of the colors common to both the screen and the inverse of the pen.
R2_MASKPENPixel is a combination of the colors common to both the pen and the screen.
R2_MASKPENNOTPixel is a combination of the colors common to both the pen and the inverse of the screen.
R2_MERGENOTPENPixel is a combination of the screen color and the inverse of the pen color.
R2_MERGEPENPixel is a combination of the pen color and the screen color.
R2_MERGEPENNOTPixel is a combination of the pen color and the inverse of the screen color.
R2_NOPPixel remains unchanged.
R2_NOTPixel is the inverse of the screen color.
R2_NOTCOPYPENPixel is the inverse of the pen color.
R2_NOTMASKPENPixel is the inverse of the R2_MASKPEN color.
R2_NOTMERGEPENPixel is the inverse of the R2_MERGEPEN color.
R2_NOTXORPENPixel is the inverse of the R2_XORPEN color.
R2_WHITEPixel is always 1.
R2_XORPENPixel is a combination of the colors in the pen and in the screen, but not in both.

Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
SetROP2
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144922(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:26:15