请问如何在一幅图片上做出玻璃破碎,下落的效果

haynes 2002-02-13 01:40:45
如何在一幅图片上做出玻璃破碎,下落的效果
有原代码最好,如较长可以发到:aynes@sohu.com
...全文
165 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
40Star 2002-02-14
  • 打赏
  • 举报
回复
如果那位大虾有算法也请发我一份!谢谢
40Star@163.com
haynes 2002-02-14
  • 打赏
  • 举报
回复
能不能详细一点
torble 2002-02-13
  • 打赏
  • 举报
回复
玻璃破碎效果涉及到复杂的算法,基本原理请看:

http://www.ccidnet.com/html/tech/guide/2001/07/24/58_2774.html
dengzhen 2002-02-13
  • 打赏
  • 举报
回复
可以使用Windows内置的BitBlt函数来实现图象特效。此函数可以根据256个光栅操作码将不同的位图组合起来,从而呈现不同的视觉效果。函数定义如下:

BOOL BitBlt(
HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left corner
int nYDest, // y-coordinate of destination rectangle's upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source device context
int nXSrc, // x-coordinate of source rectangle's upper-left corner
int nYSrc, // y-coordinate of source rectangle's upper-left corner
DWORD dwRop // raster operation code
);

具体的使用方法请参考Delphi的帮助文件。

828

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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