
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 60
applyZigZag
(amount,
ridges,
style)
number (long)
number (long)
ZigZagType
Applies the Zigzag filter
(
amount
: -100 - 100;
ridges
: 0 -
20).
autoContrast
()
Adjusts the contrast of the
selected channels automatically.
autoLevels
()
Adjusts the levels of the
selected channels using the
auto levels option.
clear
()
Cuts the layer without moving it
to the clipboard.
copy
([merge])
boolean
Copies the layer to the
clipboard. When the optional
argument is set to
true
, a
merged copy is performed (that
is, all visible layers are copied to
the clipboard).
cut
()
Cuts the layer to the clipboard.
desaturate
()
Converts a color image to a
grayscale image in the current
color mode by assigning equal
values of each component color
to each pixel.
duplicate
([relativeObject]
[, insertionLocation])
object (
ArtLayer
or
LayerSet
)
ElementPlacement
ArtLayer
or
LayerSet
Creates a duplicate of the object
on the screen.
equalize
()
Redistributes the brightness
values of pixels in an image to
more evenly represent the
entire range of brightness levels
within the image.
invert
()
Inverts the colors in the layer by
converting the brightness value
of each pixel in the channels to
the inverse value on the
256-step color-values scale.
link
(with)
object (
ArtLayer
or
LayerSet
)
Links the layer with the
specified layer.
Method
Parameter Type
Returns
What it does (Continued)