首页> 中文期刊> 《计算机时代》 >利用Java制作网页水面特效

利用Java制作网页水面特效

         

摘要

介绍了用Java在网页上制作水面特效的总体实现方案、主要技术方法和程序设计,以及应用方面几个问题的解决。其技术核心是将图像映在波动的水中。将水波视作正弦波,计算帧相位角和振幅,以振幅为动画帧偏移量,横向逐线绘制;同时采用双缓冲技术,先在图像缓冲区中处理图像,完成后再显示到窗体上。%The implementing project of making water special effects on webpage using Java is introduced. The related technique method and programming are discussed in detail, with some applied issues. The core technology is casting image on waving water. The waves are regarded as sine curves. The frame's phase angle and amplitude are calculated. The amplitude is used as frame vertical deviant to draw each line of the frame. Meanwhile, double buffer technology is utilized to process the image on buffer area and display it on the window.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号