标题:求助!水波特效!
只看楼主
tt12666
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-3-8
 问题点数:0 回复次数:1 
求助!水波特效!
各位好.有一事不明白.能在vb6.0下很容易实现的水波特效.为什么在下就实现不了呢?网上一个都没有相关介绍.
以下是vb6.0的相关源代码.我转换成后.修改了相关代码还是不能实现.
以下是 vb6.0的代码:和我在另一个论坛讨论该问题的网址.麻烦各位帮忙看看.如何实现水波特效:
dll文件在附件里

Private Declare Function WaterInit Lib "waterdll.dll" (ByVal bitmap As Long) As Long
Private Declare Function WaterMouseAction Lib "waterdll.dll" (ByVal hdc As _
    Long, ByVal sx As Long, ByVal sy As Long, ByVal mx As Long, _
        ByVal my As Long, ByVal half As Long, ByVal deep As Long) As Long

Private Declare Function WaterTimer Lib "waterdll.dll" (ByVal hdc As Long, ByVal sx As _
    Long, ByVal sy As Long) As Long


Private Sub Form_Load()
     
     
    WaterInit Picture1.Picture.Handle

End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

    WaterMouseAction Form1.hdc, 10, 10, X, Y, 60, 500
     
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    WaterMouseAction Form1.hdc, 10, 10, X, Y, 5, 80
End Sub

Private Sub Timer1_Timer()

    WaterTimer Form1.hdc, 10, 10
     
End Sub

WaterDll.rar (7.62 KB)
搜索更多相关主题的帖子: 水波 特效 
2008-04-16 11:36
tt12666
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-3-8
得分:0 
另一个论坛讨论该问题的网址:
http://topic.
2008-04-16 11:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-209319-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.155448 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved