Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 167
fill
(filltype
[, mode]
[, opacity]
[, preserveTransparency])
SolidColor
ColorBlendMode
number [1..100]
boolean
Fills the selection.
opacity is a percentage
value.
grow
(tolerance,
antiAlias)
number
boolean
Grows the selection to
include all adjacent pixels
falling within the specified
tolerance range.
invert
()
Inverts the selection
(deselects the selection and
selects the rest of the layer
or document).
Tip: To flip the selection
shape, see rotate
.
load
(from
[, combination]
[, inverting])
Channel
SelectionType
boolean
Loads the selection from the
specified channel.
makeWorkPath
([tolerance])
number
Makes this selection item
the work path for this
document.
resize
([horizontal]
[, vertical]
[, anchor])
number
number
AnchorPosition
Resizes the selected area to
the specified dimensions
and anchor position.
resizeBoundary
([horizontal]
[, vertical]
[, anchor])
number
number
AnchorPosition
Changes the size of the
selection to the specified
dimensions around the
specified anchor.
rotate
(angle
[, anchor])
number
AnchorPosition
Rotates the selection by the
specified amount around
the specified anchor point.
rotateBoundary
(angle
[, anchor])
number
AnchorPosition
Rotates the boundary of the
selection around the
specified anchor.
select
(region
[, type]
[, feather]
[, antiAlias])
array of number
SelectionType
number
boolean
Selects the specified region.
The
region parameter is an
array of four coordinates,
[left, top, right, bottom].
selectAll
()
Selects the entire layer.
Method Parameter type Returns What it does (Continued)