Skip to content

Edit › Stroke: a line along the selection's outline - #190

Open
rezaularif wants to merge 1 commit into
robbietilton:mainfrom
rezaularif:edit-stroke
Open

rezaularif wants to merge 1 commit into
robbietilton:mainfrom
rezaularif:edit-stroke

Conversation

@rezaularif

Copy link
Copy Markdown

Adds Edit › Stroke, which draws a line along the selection's outline, as in Photoshop. Closes #177.

What's added

  • Edit › Stroke… with Width, Color (foreground or background), Opacity and Location (Inside, Center or Outside).
  • On a mask, it paints black or white.
  • Only the tiles the line passes through are touched, so a thin stroke round a large selection stays quick.

How to use

  • Make a selection first: Marquee (M), Lasso (L), Magic Wand (W), or ⌘-click a layer's thumbnail to select its pixels.
  • With one visible layer or mask selected, choose Edit › Stroke…, set the options and click OK.
  • The menu item stays grayed out while there is no selection, or when two or more layers, a folder, or an adjustment layer is selected.

Tests

  • SelectionStrokeTests. The full suite passes, and the project format is unchanged.

Width, foreground or background color, Inside, Center or Outside, and
opacity, as in Photoshop; on a mask it paints black or white. Only the
tiles the line passes through are touched, so a thin stroke round a large
selection costs about what the line covers, and the selection's coverage
isn't drawn since the stroke isn't clipped to it. Closes robbietilton#177.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Fill stroke with a color and a thickness

1 participant