WaterLib.iss 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [Files]
  2. Source: compiler:WaterLib.dll; DestDir: {tmp}; Flags: dontcopy noencryption
  3. [Code]
  4. //初始化创建水波图像组件于父句柄
  5. //HWD 创建水波效果到该句柄上
  6. //DrawTextSize 初始化在水波效果上的文本数量, 如不使用设为0
  7. //DrawBmpSize 初始化在水波效果上的位图数量, 如不使用设为0
  8. function WaterInit(HWD: HWND; DrawTextSize, DrawBmpSize: Integer):Integer;
  9. external 'WaterInit@files:WaterLib.dll stdcall';
  10. //设置水波图像组件大小与位置
  11. Procedure WaterSetBounds(Handle, Left, Top, Width, Height: Integer);
  12. external 'WaterSetBounds@files:WaterLib.dll stdcall';
  13. //ClickBlob 点击画面时产生的水滴效果幅度,0 表示禁用
  14. //Damping 水滴阻尼系数
  15. //RandomBlob 随机产生的水滴最大幅度,0 表示禁用
  16. //RandomDelay 随机产生水滴的延时
  17. //TrackBlob 鼠标移动轨迹下水滴的幅度,0 表示禁用
  18. Procedure WaterSetType(Handle, ClickBlob, Damping, RandomBlob, RandomDelay, TrackBlob: Integer);
  19. external 'WaterSetType@files:WaterLib.dll stdcall';
  20. //设置水波图像组件图片文件
  21. Procedure WaterSetFile(Handle: Integer; FileName: AnsiString);
  22. external 'WaterSetFile@files:WaterLib.dll stdcall';
  23. //设置水波图像组件是否启动水波效果
  24. Procedure WaterSetActive(Handle: Integer; Active: Boolean);
  25. external 'WaterSetActive@files:WaterLib.dll stdcall';
  26. //设置水波图像组件父句柄
  27. Procedure WaterSetParentWindow(Handle: Integer; HWND: HWND);
  28. external 'WaterSetParentWindow@files:WaterLib.dll stdcall';
  29. //清空画面上的水滴效果
  30. Procedure WaterClear(Handle: Integer);
  31. external 'WaterClear@files:WaterLib.dll stdcall';
  32. //释放指定句柄的水波图像组件
  33. Procedure WaterFree(Handle: Integer);
  34. external 'WaterFree@files:WaterLib.dll stdcall';
  35. //释放全部水波图像组件
  36. Procedure WaterAllFree;
  37. external 'WaterAllFree@files:WaterLib.dll stdcall';
  38. //设置是否支持作者, True支持则显示SkyGz.Com标识, False不支持则关闭标识显示
  39. Procedure WaterSupportAuthor(SupportAuthor: Boolean);
  40. external 'WaterSupportAuthor@files:WaterLib.dll stdcall';
  41. //以下API需要启动支持作者的标识显示时才可使用
  42. //主要功能作用是在水波效果图上画文本和位图
  43. procedure WaterDrawTextBrush(Handle, Index: Integer; BrushColor: TColor; BrushStyle: TBrushStyle);
  44. external 'WaterDrawTextBrush@files:WaterLib.dll stdcall';
  45. Procedure WaterDrawTextFont(Handle, Index: Integer; FontName: AnsiString; FontSize: Integer; FontColor: TColor; FontCharset: Byte);
  46. external 'WaterDrawTextFont@files:WaterLib.dll stdcall';
  47. procedure WaterDrawBmpBrush(Handle, Index: Integer; BrushColor: TColor; BrushStyle: TBrushStyle);
  48. external 'WaterDrawBmpBrush@files:WaterLib.dll stdcall';
  49. Procedure WaterDrawBmpFont(Handle, Index: Integer; FontName: AnsiString; FontSize: Integer; FontColor: TColor; FontCharset: Byte);
  50. external 'WaterDrawBmpFont@files:WaterLib.dll stdcall';
  51. Procedure WaterDrawBitmap(Handle, Index: Integer; X, Y: Integer; HBitmap: LongWord; Transparent: Boolean; TransparentColor: TColor);
  52. external 'WaterDrawBitmap@files:WaterLib.dll stdcall';
  53. Procedure WaterDrawText(Handle, Index: Integer; X, Y: Integer; S: AnsiString);
  54. external 'WaterDrawText@files:WaterLib.dll stdcall';