求API的光栅运算函数
求API的光栅运算函数 谢谢了````
[解决办法]
帮顶
[解决办法]
是不是找的SetROP2?这个用来设置二元光栅操作方式的,共16种,MSDN中的说明:
Mix mode Description
R2_BLACK Pixel is always 0.
R2_COPYPEN Pixel is the pen color.
R2_MASKNOTPEN Pixel is a combination of the colors common to both the screen and the inverse of the pen.
R2_MASKPEN Pixel is a combination of the colors common to both the pen and the screen.
R2_MASKPENNOT Pixel is a combination of the colors common to both the pen and the inverse of the screen.
R2_MERGENOTPEN Pixel is a combination of the screen color and the inverse of the pen color.
R2_MERGEPEN Pixel is a combination of the pen color and the screen color.
R2_MERGEPENNOT Pixel is a combination of the pen color and the inverse of the screen color.
R2_NOP Pixel remains unchanged.
R2_NOT Pixel is the inverse of the screen color.
R2_NOTCOPYPEN Pixel is the inverse of the pen color.
R2_NOTMASKPEN Pixel is the inverse of the R2_MASKPEN color.
R2_NOTMERGEPEN Pixel is the inverse of the R2_MERGEPEN color.
R2_NOTXORPEN Pixel is the inverse of the R2_XORPEN color.
R2_WHITE Pixel is always 1.
R2_XORPEN Pixel is a combination of the colors in the pen and in the screen, but not in both.
此外还有三元的,但是不常用。
[解决办法]
光栅运算函数:BitBlt,StretchBlt等API
参见Visual Basic 6.0 Win32 API程序设 第9章 9.5 光栅运算:
http://www.huachu.com.cn/itbook/itbookinfo.asp?lbbh=BB03123900
里面351-352页有这样的话:光栅运算(Raster OPeration,即ROP)简称ROP。也称光栅操作、二进制光栅操作或ROP2模式,一般通过BitBlt函数来实现。SRCCOPY=&HCC0020,称为光栅操作码,或ROP码。ROP码共有15种:SRCCOPY,SRCPAINT,SRCAND等。