How the grid is drawn
The picture is covered with columns × rows cells: columns − 1 lines from top to bottom and rows − 1 lines from left to right. There is no line along the outer edge, because the edge of the picture is already the outer edge of the outermost cells. Every line is drawn over the pixels that are there; the picture is not cut up and nothing is resampled.
The cells are as equal as whole pixels allow. When a side does not divide evenly, the first cells are one pixel bigger, which is the rule that cuts a picture into pieces inside FlowPix as well, so the lines sit where an even split would put them. The table gives the number of lines for a few grids.
| Columns × rows | Lines from top to bottom | Lines from left to right |
|---|---|---|
| 2 × 2 | 1 | 1 |
| 3 × 3 | 2 | 2 |
| 3 × 4 | 2 | 3 |
| 10 × 4 | 9 | 3 |
| 20 × 20 | 19 | 19 |
The line width is a share of the picture
The line width is a step from 1 to 10, not a number of pixels: 1 is one thousandth of the shorter side of the picture, 10 is one hundredth, and a line is at least one pixel. A step therefore covers the same share of a small photo and of a large one.
A line is centred on the edge between two cells, so a wide line takes pixels on both sides of that edge. The part of a line that would fall outside the picture is not drawn. The lines are opaque, in the color you choose, over the picture.
The grid method, and the same grid in FlowPix
Copying a picture with a grid is a method: draw the same grid on a paper sheet of the same proportions as the picture, and every cell of the picture has one place on the sheet. You copy one cell at a time, and the proportions hold because both grids are the same grid. This page does not compute sizes for paper; it gives you the picture with the grid drawn on it.
FlowPix's canvas has the same grid in its Adjust panel: the Grid switch, the fields Rows and Columns (2 to 20 each), Line width (1 to 10) and Line color, and the button Save as new image, which writes the picture with the grid as a new picture beside the original. The canvas grid has no square-cells switch: there the rows and the columns are set by hand. In the tool on this page, the switch Square cells makes the rows follow the columns.