Taking care to respect the positions of *edges* of pixels, with respect to whether or not an edge of a box is visible.