The area of a closed polygon with vertices on the points of a plane square latice is given by the formula [(N + 0.5*B -1)*M], where M is the area of the square "mesh" . N being the number of points inside the polygon and B the points on the boundary.