public static Point getPixelLocInArea(int pixel, double tolerance, int tx, int ty, int bx, int by) {
		for(int x = tx; x <= bx; x++) {
			for(int y = ty; y <= by; y++) {
				if(isInTolerance(getPixel(x, y), pixel, tolerance)) {
					return new Point(x, y);
				}
			}
		}
		return null;
	}