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

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

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

revision 1.10 by mkoch, Wed Feb 16 10:39:27 2005 UTC revision 1.11 by smarothy, Sun Jun 5 23:48:54 2005 UTC
# Line 147  public abstract class RGBImageFilter ext Line 147  public abstract class RGBImageFilter ext
147      public void filterRGBPixels(int x, int y, int w, int h, int[] pixels,      public void filterRGBPixels(int x, int y, int w, int h, int[] pixels,
148                                  int offset, int scansize)                                  int offset, int scansize)
149      {      {
150        for (int xp = x; xp < (x + w); xp++)        for (int yp = 0; yp < h; yp++)
151          for (int yp = y; yp < (y + h); yp++)          {
152            {            for (int xp = 0; xp < w; xp++)
153              pixels[offset] = filterRGB(xp, yp, pixels[offset]);              {
154              offset++;                pixels[offset + xp] = filterRGB(xp + x, yp + y, pixels[offset + xp]);
155            }              }
156              offset += scansize;
157            }
158      }      }
159    
160    
# Line 212  public abstract class RGBImageFilter ext Line 214  public abstract class RGBImageFilter ext
214          else          else
215          {          {
216              //FIXME: Store the filtered pixels in a separate temporary buffer?              //FIXME: Store the filtered pixels in a separate temporary buffer?
217              convertColorModelToDefault( x, y, w, h, model, pixels, offset, scansize );            convertColorModelToDefault( x, y, w, h, model, pixels, offset, scansize );
218              filterRGBPixels( x, y, w, h, pixels, offset, scansize );            filterRGBPixels( x, y, w, h, pixels, offset, scansize );
219              consumer.setPixels(x, y, w, h, ColorModel.getRGBdefault(), pixels, offset, scansize);            consumer.setPixels(x, y, w, h, ColorModel.getRGBdefault(), pixels, offset, scansize);
220          }          }
221      }      }
222    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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