PixelDotNet Guide

Selections and masks

A selection is a stencil. It protects everything outside the stencil and lets your edits reach only the area inside it. This chapter covers every way to make and change a selection, plus masks, guides, and snapping.

On this page
  1. What a selection does
  2. Making a selection
  3. Adding and subtracting
  4. Moving and resizing a selection
  5. Using a selection
  6. Layer masks
  7. Clipping a layer to the one below
  8. Rulers, guides, and snapping

What a selection does

When a selection exists, the following actions stay inside it:

Selections belong to the whole document, not to one layer. You can make a selection once and then paint on several different layers inside the same area.

A selection is shown as a moving dotted outline, often called marching ants. The moving line itself is never saved in the image.

Making a selection

There are five selection tools. Each one creates the stencil a little differently.

ToolShortcutBest forHow to use it
MarqueeMRectangular areas, boxes, panelsDrag a rectangle.
Elliptical SelectQCircles and ovalsDrag a bounding box; the ellipse fills it.
LassoFRough organic outlinesDraw around the subject and release.
Magic WandWFlat colours and clean edgesClick a colour. Raise or lower tolerance as needed.
Quick SelectionACutting out a subject quicklyPaint over the subject. Add or subtract as needed.

Magic Wand options

Quick Selection options

A rectangular selection shown as a dotted outline on the canvas
A selection is shown as a moving dotted outline. Everything outside it is protected from the next edit.

Adding and subtracting

You are not limited to one selection at a time. The modifier keys let you combine shapes:

ModifierResult
ShiftAdd the new area to the current selection.
CtrlAdd the new area to the current selection.
AltSubtract the new area from the current selection.
No modifierReplace the current selection with the new one.
When is the modifier read? For the marquee, ellipse, and lasso, hold the key before you start dragging. For the Magic Wand and Quick Selection, the key is checked when you click or start painting.

The options bar also has selection mode buttons for New, Add, Subtract, and Intersect, so you do not have to remember the keys.

Moving and resizing a selection

Switch to the Move tool with V, then drag inside the selection to move the selected pixels and the selection together. A transparent hole is left behind where the pixels used to be.

Moving pixels is destructive Moving a selection punches a hole in the active layer. If you only want to move the stencil without moving pixels, use the selection tool instead of the Move tool.

Using a selection

Once a selection exists, these commands become useful:

CommandWhat it does
Select > Select AllSelects the whole document.
Select > Deselect or EscClears the selection so edits can reach the whole layer again.
Select > Fill with ForegroundFills the selected area with the foreground colour.
Edit > Clear or DelErases the selected pixels on the active layer.
Edit > Copy / PasteCopies the selected pixels and pastes them as a new layer.
Edit > Copy MergedCopies the visible result of all layers inside the selection.
Edit > Content-Aware FillRemoves the selected content and reconstructs the area from its surroundings.

A simple cut-out recipe

  1. Select the subject with Quick Selection or the Magic Wand.
  2. Add and subtract until the dotted outline hugs the subject.
  3. Press Ctrl+C to copy the selected pixels, then Ctrl+V to paste them as a new layer.
  4. Hide the original layer to check the cut-out against transparency.
  5. Use a layer mask later if you want to soften or refine the edge.

Layer masks

A layer mask is a reusable stencil attached to one layer. It is often better than a selection because it is non-destructive and can be adjusted at any time.

Think of the mask as a black and white painting:

Adding a mask

  1. Make a selection if you want to start with a shaped mask.
  2. Click the mask button in the Layers panel, or right-click the layer and choose the mask action.
  3. Click the mask thumbnail so it has a white border. You are now painting on the mask, not on the layer.
  4. Paint black with the brush to hide areas, or white to reveal them. Use grey for soft transitions.

Click the layer thumbnail to return to painting on the layer itself. Right-click the mask thumbnail to remove the mask.

Soft edges Use a soft brush on the mask for hair, clouds, and gentle fades. The layer pixels are never destroyed, so you can always paint the area back in.

Clipping a layer to the one below

Clipping is another kind of stencil. When a layer is clipped to the layer below, it only shows where the lower layer has visible pixels. This is perfect for colouring line art or adding shading to a shape without painting outside its edges.

  1. Put the artwork you want to use as the boundary on one layer.
  2. Add a new layer above it and paint freely. It can cover the whole canvas.
  3. Turn on Clip for the upper layer, or right-click it and choose the clip action.
  4. The upper layer is now trimmed to the visible content of the layer below.

Clipped layers are marked in the Layers panel and are saved in project files.

Rulers, guides, and snapping

Guides are thin lines you place to line things up. They do not appear in the saved image.

The grid is a separate aid. View > Toggle Grid draws an eight pixel grid over the canvas. Like guides, it is only a visual aid and is not saved.

< Previous: Tools Next: Layers >