raster-operation code

 调用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.

Value Description
BLACKNESS Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)将来源位图转换为黑色
CAPTUREBLT Windows 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.
DSTINVERT Inverts the destination rectangle.将目的地DC做"NOT"运算
MERGECOPY Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.将选择的笔刷与来源位图做"AND"运算
MERGEPAINT Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.先将来源位图做"NOT"运算,再与目的地DC做"OR"运算
NOMIRRORBITMAP Windows 98/Me, Windows 2000/XP: Prevents the bitmap from being mirrored.
NOTSRCCOPY Copies the inverted source rectangle to the destination.将来源位图做"NOT"运算
NOTSRCERASE Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.先将来源位图与目的地DC做"OR"运算,再将其做"NOT"运算
PATCOPY Copies the brush currently selected in hdcDest, into the destination bitmap.将选择的笔刷粘贴到目的地DC上
PATINVERT Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.将目的地DC与选择的笔刷做"XOR"运算
PATPAINT Combines 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"运算
SRCAND Combines the colors of the source and destination rectangles by using the Boolean AND operator.将来源位图与目的地DC做"AND"运算
SRCCOPY Copies the source rectangle directly to the destination rectangle.将来源位图贴到目的地DC上
SRCERASE Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.先将目的地DC做"NOT"运算,再与来源位图做"AND"运算
SRCINVERT Combines the colors of the source and destination rectangles by using the Boolean XOR operator.将来源位图与目的地DC做"XOR"运算
SRCPAINT Combines the colors of the source and destination rectangles by using the Boolean OR operator.将来源位图与目的地DC做"OR"运算
WHITENESS Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)将来源位图转换为白色
posted @ 2009-09-01 15:41  碧青_Kwok  阅读(1027)  评论(0编辑  收藏  举报