阅读背景:

VB与API学习笔记(7)动画与特效

来源:互联网 

没看到动画情况,只看到了特效,听说gif是专利,微软好像下不了手。



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()
    Set Picture3(0).Picture = Picture1.Picture
    Set Picture3(1).Picture = Picture1.Picture
    Set Picture3(2).Picture = Picture1.Picture
    BitBlt Picture3(0).hDC, 0, 0, 100, 100, Picture2.hDC, 0, 0, vbSrcAnd 'and
    BitBlt Picture3(1).hDC, 0, 0, 100, 100, Picture2.hDC, 0, 0, vbSrcPaint 'or
    BitBlt Picture3(2).hDC, 0, 0, 100, 100, Picture2.hDC, 0, 0, vbSrcInvert 'xor
End SubPr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: