Example
Address pixels by row and column, then build a small pixel set.
highlighted = computed this step
Step 1 — Start with an empty grid
Rows count down; columns count right.
cells are addressed as (row,col)
Step 2 — Set pixel A
Set pixel A at its row and column.
A=(0,0)
Step 3 — Set pixel B
Set pixel B at its row and column.
B=(1,3)
Step 4 — Set pixel C
Set pixel C at its row and column.
C=(3,2)
pixel-grid-basics
A raster image is a grid of pixels. Each pixel is located by row and column, and those addresses are part of the data.