raster-operation code

BitBlt函数操作代码详解

 调用BitBlt函数时碰到的参数,copy自MSDN,自己加点中文注释~

These codes define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color.
The following list shows some common raster operation codes.

ValueDescription
BLACKNESSFills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)将来源位图转换为黑色
CAPTUREBLTWindows 98/Me, Windows 2000/XP: Includes any windows that are layered on top of your window in the resulting image. By default, the image only contains your window. Note that this generally cannot be used for printing device contexts.
DSTINVERTInverts the destination rectangle.将目的地DC做"NOT"运算
MERGECOPYMerges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.将选择的笔刷与来源位图做"AND"运算
MERGEPAINTMerges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.先将来源位图做"NOT"运算,再与目的地DC做"OR"运算
NOMIRRORBITMAPWindows 98/Me, Windows 2000/XP: Prevents the bitmap from being mirrored.
NOTSRCCOPYCopies the inverted source rectangle to the destination.将来源位图做"NOT"运算
NOTSRCERASECombines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.先将来源位图与目的地DC做"OR"运算,再将其做"NOT"运算
PATCOPYCopies the brush currently selected in hdcDest, into the destination bitmap.将选择的笔刷粘贴到目的地DC上
PATINVERTCombines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.将目的地DC与选择的笔刷做"XOR"运算
PATPAINTCombines the colors of the brush currently selected in hdcDest, with the colors of the inverted source rectangle by using the Boolean OR operator. The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator.先将来源位图做"NOT"运算,再与笔刷做"OR"运算,最后再与目的地DC做"OR"运算
SRCANDCombines the colors of the source and destination rectangles by using the Boolean AND operator.将来源位图与目的地DC做"AND"运算
SRCCOPYCopies the source rectangle directly to the destination rectangle.将来源位图贴到目的地DC上
SRCERASECombines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.先将目的地DC做"NOT"运算,再与来源位图做"AND"运算
SRCINVERTCombines the colors of the source and destination rectangles by using the Boolean XOR operator.将来源位图与目的地DC做"XOR"运算
SRCPAINTCombines the colors of the source and destination rectangles by using the Boolean OR operator.将来源位图与目的地DC做"OR"运算
WHITENESSFills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)将来源位图转换为白色

转载于:https://www.cnblogs.com/lovelovelt/archive/2009/09/01/1558119.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值