private void resize(Signature signature, int size) {
		double minX = Double.MAX_VALUE;
		double maxX = Double.MIN_VALUE;
		double minY = Double.MAX_VALUE;
		double maxY = Double.MIN_VALUE;

		for (Point point : signature.getPoints()) {
			if (point.getX() < minX)
				minX = point.getX();
			if (point.getX() > maxX)
				maxX = point.getX();
			if (point.getY() < minY)
				minY = point.getY();
			if (point.getY() > maxY)
				maxY = point.getY();
		}

		double sizeX = maxX - minX;
		double sizeY = maxY - minY;
		double ratio = sizeX > sizeY ? size / sizeX : size / sizeY;

		for (Point point : signature.getPoints())
			point.homothety(ratio);
	}