计算机时代
計算機時代
계산궤시대
COMPUTER ERA
2014年
10期
54-55
,共2页
Java%程序设计%网页%水面特效%图像
Java%程序設計%網頁%水麵特效%圖像
Java%정서설계%망혈%수면특효%도상
Java%programing%webpage%water special effects%image
介绍了用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.