StretchBit 翻转图片 透明

来源:互联网 发布:java list《map 编辑:程序博客网 时间:2024/04/29 23:48

  case WM_PAINT:
         hdcClient = BeginPaint (hwnd, &ps) ;
         hdcWindow = GetWindowDC (NULL) ;
       //  BitBlt(hdcClient,-cx,0,re.right,cy,hdcWindow,0,0,SRCCOPY);
          StretchBlt(hdcClient,re.right,re.bottom,-re.right,-re.bottom,hdcWindow,0,0,cx,cy,NOTSRCCOPY);
         DeleteDC(hdcWindow);
          EndPaint (hwnd, &ps) ;
          return 0 ;
 

 

BitBlt

StretchBlt

PatBlt  对目标设备描述进行,操作。取反,BLACK。。。。 PatCopy 其实windows的填充就是调用(矩形)

要透明色贴图,用TRANSPARENTBLT
要通道混合贴图,用ALPHABLEND
这是GDI中最简单快速的两个API。
不需要了解什么DIB之类的知识,只需要了解如何调用参数就可以

原创粉丝点击