for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); }
i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++;
	public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) {		int xp, yp;		for (xp = x; xp < (x + w); xp++) {			for (yp = y; yp < (y + h); yp++) {				pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]);			}		}	}