code: public void convertToPixels( HashSet<Point> pix ) {
          Iterator<Point> it = pix.iterator();
          while( it.hasNext() ) {
              Point p = it.next();
              pixels[p.x][p.y] = FOREGROUND;
          }
      }
docs: Adds the pixels from a hash set to the 2D array of pixels.
  
  @param pix The hash set of foreground pixels to be added.