Creation of whole grids.
A mask over a copy of bits, row-major from the top-left corner.
The mask toRaster stored: a pixel at least half opaque is foreground.
A mask whose every pixel is foreground of its coordinates.