code: public Point[] points() {
          Point[] points = new Point[width * height];
          int k = 0;
          for (int y = 0; y < height; y++) {
              for (int x = 0; x < width; x++) {
                  points[k++] = new Point(x, y);
              }
          }
          return points;
      }
docs: Returns an array of every point in the image, useful if you want to be able to
  iterate over all the coordinates.
  <p>
  If you want the actual pixel values of every point then use pixels().