/[gzz]/gzz/gzz/client/awt/AWTScreen.java
ViewVC logotype

Diff of /gzz/gzz/client/awt/AWTScreen.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by benja, Thu Sep 26 11:54:07 2002 UTC revision 1.23 by tjl, Mon Oct 14 18:15:19 2002 UTC
# Line 28  import java.awt.event.*; Line 28  import java.awt.event.*;
28    
29  import gzz.util.InputEventUtil;  import gzz.util.InputEventUtil;
30  import gzz.util.JavaIncompat;  import gzz.util.JavaIncompat;
31    import java.awt.image.PixelGrabber;
32    
33  /** A single output window.  /** A single output window.
34   */   */
# Line 111  public abstract class AWTScreen Line 112  public abstract class AWTScreen
112      VobScene listprev, listnext;      VobScene listprev, listnext;
113      int[] interplist;      int[] interplist;
114    
115        public int[] readPixels(int x, int y, int w, int h) {
116            int[] pix = new int[w*h];
117            PixelGrabber pg = new PixelGrabber(cache.getSource(),
118                            x, y, w, h, pix, 0, w);
119            try {
120                pg.grabPixels();
121            } catch(InterruptedException e) {
122                throw new Error("Interrupted readpixels");
123            }
124            return pix;
125        }
126    
127      /** Renders a frame of the view animation onto Graphics buffer      /** Renders a frame of the view animation onto Graphics buffer
128       */       */
129      void renderAnimImage(VobScene prev, VobScene next, float fract, float lod) {      void renderAnimImage(VobScene prev, VobScene next, float fract, float lod) {
# Line 243  public abstract class AWTScreen Line 256  public abstract class AWTScreen
256              if(useGlobalCache)              if(useGlobalCache)
257                  gr.drawImage(cache, 0, 0, d.width-1, d.height-1,                  gr.drawImage(cache, 0, 0, d.width-1, d.height-1,
258                                      0, 0, d.width-1, d.height-1, null);                                      0, 0, d.width-1, d.height-1, null);
259                  else              else
260                      gr.drawImage(cache, 0, 0, null);                  gr.drawImage(cache, 0, 0, null);
261          }          }
262          public void update(Graphics gr) {          public void update(Graphics gr) {
263              // Default behaviour overridden because we clear the canvas ourselves              // Default behaviour overridden because we clear the canvas ourselves

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26