PURE. Verbs over an image's selection: rectangle, ellipse, polygon, an
item's alpha, invert, all, none, grow and shrink. Every verb answers the
selection's Bounds afterwards, so a program can check what it selected.
:op combines with the current selection (v/channel-ops, default
:replace).
PURE. Verbs over an image's selection: rectangle, ellipse, polygon, an item's alpha, invert, all, none, grow and shrink. Every verb answers the selection's `Bounds` afterwards, so a program can check what it selected. `:op` combines with the current selection (`v/channel-ops`, default `:replace`).
(bounds image)The Bounds of image's selection.
The `Bounds` of `image`'s selection.
(grow image steps)Grow image's selection by steps pixels.
Grow `image`'s selection by `steps` pixels.
(select-ellipse image {:keys [x y width height op]})Select the ellipse inscribed in the box :x :y :width :height of image.
Select the ellipse inscribed in the box `:x :y :width :height` of `image`.
(select-item image item {:keys [op]})Select the alpha of item (a layer's opaque pixels, a path's interior).
Select the alpha of `item` (a layer's opaque pixels, a path's interior).
(select-polygon image points {:keys [op]})Select the polygon through points ([[x y] ...], closed implicitly).
Select the polygon through `points` (`[[x y] ...]`, closed implicitly).
(select-rectangle image {:keys [x y width height op]})Select the box :x :y :width :height of image.
Select the box `:x :y :width :height` of `image`.
(shrink image steps)Shrink image's selection by steps pixels.
Shrink `image`'s selection by `steps` pixels.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |