lib/modify.js
function () {
		var Class = this.constructor,
			x, y,
			width = this.getWidth(),
			height = this.getHeight(),
			image = Class.createImage(height, width);

		for (x = 0; x < width; x++) {
			for (y = 0; y < height; y++) {
				image.setPixel(y, width - x - 1, this.getPixel(x, y));
			}
		}

		return image;
	}
function () {
		var Class = this.constructor,
			x, y,
			width = this.getWidth(),
			height = this.getHeight(),
			image = Class.createImage(height, width);

		for (x = 0; x < width; x++) {
			for (y = 0; y < height; y++) {
				image.setPixel(y, width - x - 1, this.getPixel(x, y));
			}
		}

		return image;
	}
function ( ) { var Class = this . constructor , x , y , width = this . getWidth ( ) , height = this . getHeight ( ) , image = Class . createImage ( height , width ) ; for ( x = 0 ; x < width ; x ++ ) { for ( y = 0 ; y < height ; y ++ ) { image . setPixel ( y , width - x - 1 , this . getPixel ( x , y ) ) ; } } return image ; }
Rotates the current image 90 degree counter-clockwise

@method rotateCCW
@return {PNGImage} Rotated image
Rotates the current image 90 degree counter - clockwise