发一个水波纹的特效

vb2014 2011-06-06 01:58:20
http://download.csdn.net/source/3342563
用法
Private declare Function enablewater Lib "waterctrl.dll" (Handle As Integer ,left As Integer ,top As Integer ,bitmapHandle As Integer ,WaterRadius as integer, WaterHeight as integer) As Boolean

窗体的句柄
'handle 放置特效窗口的父窗口句柄。
'Left 左位置
'Top 上位置
'Bmp 位图句柄。
'WaterRadius 水纹半径,会令到水纹看起来范围更广。
'WaterHeight 水纹高度,会令到水纹看起来更深。
'注意,水纹插件自动根据图片来设定高度和宽度,
'另外水纹底图必须是翻转的图片,显示的时候会翻转图片来显示。

private declare function waterblob Lib "waterctrl.dll" (x as integer, y as integer. radius as integer ,height as integer) as Boolean '没测试

' 在 x,y 点产生半径为radius, 高度为height 的水纹。


private declare function disablewater Lib "waterctrl.dll" () as boolean
' 释放水纹插件


private declare function flattenwater Lib "waterctrl.dll" () as boolean
'平伏所有水纹。

private declare function setwaterparent Lib "waterctrl.dll" (HWND as integer ) as BOOLean
'v2 新增,设置水纹插件的父句柄





'handle 放置特效窗口的父窗口句柄。
'Left 左位置
'Top 上位置
'Bmp 位图句柄。
'WaterRadius 水纹半径,会令到水纹看起来范围更广。
'WaterHeight 水纹高度,会令到水纹看起来更深。
'注意,水纹插件自动根据图片来设定高度和宽度,
'另外水纹底图必须是翻转的图片,显示的时候会翻转图片来显示。
[DllImport("waterctrl.dll")]
private static bool enablewater(int Handle, int left, int top, int bitmapHandle, int WaterRadius, int WaterHeight)
{
}

' 在 x,y 点产生半径为radius, 高度为height 的水纹。
[DllImport("waterctrl.dll")]
private static bool waterblob(int x, int y, int radius, int height)
{
}
' 释放水纹插件
[DllImport("waterctrl.dll")]
private static bool disablewater()
{
}
'平伏所有水纹
[DllImport("waterctrl.dll")]
private static bool flattenwater()
{
}

'v2 新增,设置水纹插件的父句柄
[DllImport("waterctrl.dll")]
private static bool setwaterparent(int HWND)
{
}



...全文
134 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
影子_爱人 2011-08-19
  • 打赏
  • 举报
回复
每天回帖即可获得10分可用分
porschev 2011-06-13
  • 打赏
  • 举报
回复

什么东西。。。。。。
homebj 2011-06-13
  • 打赏
  • 举报
回复
关注!
xuexiaodong2009 2011-06-07
  • 打赏
  • 举报
回复
学习了

8,834

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 组件/控件开发
社区管理员
  • 组件/控件开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧