/Users/lyon/j4p/src/j2d/animation/AverageProcessor.java

1    package j2d.animation; 
2     
3    import java.awt.*; 
4     
5    public class AverageProcessor 
6            implements ImageSequenceProcessor { 
7        public Image[] process(Image image[]) { 
8            Image ia[] = {j2d.ImageUtils.average(image)}; 
9            return ia; 
10       } 
11    
12       public static void main(String args[]) { 
13           Image img[] = j2d.animation.GifUtils.getGifs(); 
14           AverageProcessor ap = new AverageProcessor(); 
15           Image outImg[] = ap.process(img); 
16    
17       } 
18   } 
19    
20