/[classpath]/classpath/java/awt/image/BufferedImage.java
ViewVC logotype

Diff of /classpath/java/awt/image/BufferedImage.java

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

revision 1.4 by mkoch, Tue Jun 3 16:40:37 2003 UTC revision 1.5 by graydon, Wed Sep 17 19:44:26 2003 UTC
# Line 267  public class BufferedImage extends Image Line 267  public class BufferedImage extends Image
267        raster.createWritableChild(x, y, w, h, x, y,        raster.createWritableChild(x, y, w, h, x, y,
268                                   null  // same bands                                   null  // same bands
269                                   );                                   );
270            if (src.getSampleModel () instanceof ComponentSampleModel
271      // Refer to ComponentDataBlitOp for optimized data blitting:          && dest.getSampleModel () instanceof ComponentSampleModel)
272      ComponentDataBlitOp.INSTANCE.filter(src, dest);        // Refer to ComponentDataBlitOp for optimized data blitting:
273          ComponentDataBlitOp.INSTANCE.filter(src, dest);
274        else
275          {
276            // slower path
277            int samples[] = src.getPixels (x, y, w, h, (int [])null);
278            dest.setPixels (x, y, w, h, samples);
279          }
280      return dest;      return dest;
281    }    }
282    
# Line 540  public class BufferedImage extends Image Line 547  public class BufferedImage extends Image
547        raster.createWritableChild(x, y, w, h, x, y,        raster.createWritableChild(x, y, w, h, x, y,
548                                   null  // same bands                                   null  // same bands
549                                   );                                   );
550        
551      // Refer to ComponentDataBlitOp for optimized data blitting:      if (src.getSampleModel () instanceof ComponentSampleModel
552      ComponentDataBlitOp.INSTANCE.filter(src, dest);          && dest.getSampleModel () instanceof ComponentSampleModel)
553    
554          // Refer to ComponentDataBlitOp for optimized data blitting:
555          ComponentDataBlitOp.INSTANCE.filter(src, dest);
556        else
557          {
558            // slower path
559            int samples[] = src.getPixels (x, y, w, h, (int [])null);
560            dest.setPixels (x, y, w, h, samples);
561          }
562    }    }
563    
564    public void setRGB(int x, int y, int argb)    public void setRGB(int x, int y, int argb)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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