VB用Bitblt实现透明位图显示

前端之家收集整理的这篇文章主要介绍了VB用Bitblt实现透明位图显示前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
'API声明
Private Declare Function BitBlt Lib "gdi32"   ( ByVal hDestDC As Long,ByVal x As Long,ByVal y As Long,ByVal nWidth As Long,ByVal nHeight As Long,ByVal hSrcDC As Long,ByVal xSrc As Long,ByVal ySrc As Long,ByVal dwRop As Long )   As Long

Private Sub Command1_Click (   )  
      BitBlt 目标图.hDC,( 目标图.Width / 2 - 掩码图.Width / 2 )   / 15,掩码图.Width / 15,掩码图.Height / 15,掩码图.hDC,vbSrcAnd
      BitBlt 目标图.hDC,源图.hDC,vbSrcInvert
End Sub
原文链接:https://www.f2er.com/vb/259082.html

猜你在找的VB相关文章