Selecting a geometric-shaped part of an image in PhotoShop
In text or a vector drawing it is easy to pick a part, because they consist of a few characters or objects. A raster has millions of pixels that cannot be picked one by one, so the boundary of the part is marked; the selected part is surrounded by a moving dashed line and only that part changes. Ctrl+A selects the whole image and Ctrl+D (Select → Deselect) cancels a selection. The first group on the toolbar is Marquee: rectangular and elliptical area, single row and single column tools (key M); you press the left button, drag along a diagonal and release. The options bar has four modes: new selection, add (Shift), subtract (Alt) and intersect (Shift+Alt); when a new area is selected, the old selection is replaced, added to, subtracted from or intersected according to the mode. For complex shapes the Lasso (key L) and Polygonal Lasso are used: with the first you draw the boundary along the mouse trail, with the second you click the ends of straight segments. A selected part can be copied with Ctrl+C and pasted with Ctrl+V.
| Mode | Key | Result |
|---|---|---|
| add | Shift | union |
| subtract | Alt | A minus B |
| intersect | Shift + Alt | the common part |
For a wall newspaper a person in a photo is first marked off with a pencil outline, not scissors: only what is inside the outline goes on to the next step. If the outline is wrong, a needed part is cut off or extra background stays. Digital selection rests on the same idea.
Print-shop layout workers, tailors who cut cloth and cartoon artists mark off the wanted shape with an outline.
Draw two overlapping circles on paper and colour only the common part in one colour and the remaining part of each circle in other colours.
| Part | Calculation | Pixels |
|---|---|---|
| A | 150·80 | 12 000 |
| B | 100·80 | 8 000 |
| A ∪ B | 150·80 + 100·80 – 60·80 | 15 200 |
| A minus B | 150·80 – 60·80 | 7 200 |
| intersection | 60·80 | 4 800 |
“Selection workshop”: pairs use the selection modes to paint a “house” silhouette (a square plus a triangular roof); a neighbouring pair works out which modes were used.