double middley = zoomedBounds.y + (zoomedBounds.height / 2);
PointList ret = new PointList();
for (int i = 0; i < points.size(); i++) {
Point point = points.getPoint(i);
point.scale(zoom);
// translate all points towards the middle depending on the
// line-width, so that the polyline remains inside the bounds
// Note, that the delta has to be rounded up/down depending on the
// relative location from point to middle.