
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 62
photoFilter
([fillColor]
[, density]
[, preserveLuminosity])
SolidColor
number (long)
boolean
Adjust the layer’s color balance
and temperature as if a color
filter had been applied
(
density
: 1 - 100, as a
percentage).
posterize
(levels)
number (long)
Specifies the number of tonal
levels (2 - 255) for each channel
and then maps pixels to the
closest matching level.
rasterize
(target)
RasterizeType
Converts the targeted contents
in the layer into a flat, raster
image.
remove
()
Deletes the object.
resize
([horizontal]
[, vertical]
[, anchor])
number (double)
number (double)
AnchorPosition
Resizes the layer to the specified
dimensions (as a percentage of
its current size) and places it in
the specified position.
rotate
(angle
[, anchor])
number (double)
AnchorPosition
Rotates rotates the layer around
the specified anchor point
(default:
AnchorPosition.MIDDLECENTE
R
).
selectiveColor
(selectionMethod
[, reds]
[, yellows]
[, greens]
[, cyans]
[, blues]
[, magentas]
[, whites]
[, neutrals]
[, blacks])
AdjustmentReference
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
array of numbers (long)
Modifies the amount of a
process color in a specified
primary color without affecting
the other primary colors.
Note:
Each color array must
have four components.
shadowHighlight
([shadowAmount]
[, shadowWidth]
[, shadowRadius]
[, highlightAmount]
[, highlightWidth]
[, highlightRadius]
[, colorCorrection]
[, midtoneContrast]
[, blackClip]
[, whiteClip])
number (long)
number (long)
number (long)
number (long)
number (long)
number (long)
number (long)
number (long)
number (double)
number (double)
Adjusts the range of tones in the
image’s shadows and highlights
(
shadowAmount
: 0 - 100 as
percent;
shadowWidth
: 0 - 100
as percent;
shadowRadius
: 0 -
2500 in pixels;
highlightAmount
: 0 - 100 as
percent;
highlightWidth
: 0 -
100 as percent;
highlightRadius
: 0 - 2500 in
pixels;
colorCorrection
: -100 -
100;
midtoneContrast
: -100 -
100;
blackClip
: 0.000 - 50.000;
whiteClip
: 0.000 - 50.000).
Method
Parameter Type
Returns
What it does (Continued)