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

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

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

revision 1.5 by trebligd, Mon Jul 25 09:54:11 2005 UTC revision 1.6 by tromey, Thu Aug 11 18:29:23 2005 UTC
# Line 1  Line 1 
1  /* ConvolveOp.java --  /* ConvolveOp.java --
2     Copyright (C) 2004 Free Software Foundation -- ConvolveOp     Copyright (C) 2004, 2005 Free Software Foundation -- ConvolveOp
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 191  public class ConvolveOp implements Buffe Line 191  public class ConvolveOp implements Buffe
191     * java.awt.image.WritableRaster)     * java.awt.image.WritableRaster)
192     */     */
193    public WritableRaster filter(Raster src, WritableRaster dest) {    public WritableRaster filter(Raster src, WritableRaster dest) {
     if (src.numBands != dest.numBands)  
       throw new ImagingOpException(null);  
194      if (src == dest)      if (src == dest)
195        throw new IllegalArgumentException();        throw new IllegalArgumentException();
196      if (src.getWidth() < kernel.getWidth() ||      if (src.getWidth() < kernel.getWidth() ||
# Line 201  public class ConvolveOp implements Buffe Line 199  public class ConvolveOp implements Buffe
199            
200      if (dest == null)      if (dest == null)
201        dest = createCompatibleDestRaster(src);        dest = createCompatibleDestRaster(src);
202        else if (src.numBands != dest.numBands)
203          throw new ImagingOpException(null);
204    
205      // Deal with bottom edge      // Deal with bottom edge
206      if (edge == EDGE_ZERO_FILL)      if (edge == EDGE_ZERO_FILL)

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

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