code: public void clear() {
          if (arrMask != null) {
              for (int y = 0; y < height; y++) {
                  for (int x = 0; x < width; x++) {
                      arrMask[x][y] = false;
                  }
              }
          }
      }
docs: Clear the mask for a new selection