public void flipHorizontal() {
		byte image[] = new byte[width * height];
		int off = 0;
		for (int offY = 0; offY < height; offY++) {
			for (int offX = width - 1; offX >= 0; offX--) {
				image[off++] = pixels[offX + offY * width];
			}
		}
		pixels = image;
		offsetX = trimWidth - width - offsetX;
	}