static Area scanlineBitMatrixToArea(ScanlineBitMatrix m) {
  ret joinAreas(map toRectangle(m.runs()));
}