
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 167
fill
(filltype
[, mode]
[, opacity]
[, preserveTransparency])
Object (
SolidColor
or
HistoryState
)
ColorBlendMode
number (long)
boolean
Fills the selection (
opacity
: 1 -
100 as percent).
grow
(tolerance,
antiAlias)
number (long)
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).
Note:
To flip the selection
shape, see
rotate
.
load
(from
[, combination]
[, inverting])
Channel
SelectionType
boolean
Loads the selection from the
specified channel.
makeWorkPath
([tolerance])
number (double)
Makes this selection item the
work path for this document.
resize
([horizontal]
[, vertical]
[, anchor])
number (double)
number (double)
AnchorPosition
Resizes the selected area to
the specified dimensions and
anchor position.
resizeBoundary
([horizontal]
[, vertical]
[, anchor])
number (double)
number (double)
AnchorPosition
Changes the size of the
selection to the specified
dimensions around the
specified anchor.
rotate
(angle
[, anchor])
number (double)
AnchorPosition
Rotates the selection by the
specified amount around the
specified anchor point.
rotateBoundary
(angle
[, anchor])
number (double)
AnchorPosition
Rotates the boundary of the
selection around the specified
anchor.
select
(region
[, type]
[, feather]
[, antiAlias])
array of points:
Array (Array (x,y),...)
SelectionType
number (double)
boolean
Selects the specified region.
selectAll
()
Selects the entire layer.
Method
Parameter Type
Returns
What it does (Continued)