All pastes #458911 Raw Edit

Miscellany

public java v1 · immutable
#458911 ·published 2007-04-26 05:15 UTC
rendered paste body
public void mirror()    {			int height = getHeight();    	int width = getWidth();    	for(int y = 0; y < height; y++)    	{    		for(int x = 0; x < width/2; x++)    		{					System.out.println(x + " - " + y);    			Color thisPixel = getPixel(x, y);    			Color thatPixel = getPixel(width - x, y);    			setPixel(x, y, thatPixel);    			setPixel(width - x, y, thisPixel);    		}    	}    }