Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 55
Methods
Method Parameter type Returns What it does
adjustBrightnessContrast
(brightness,
contrast)
number
number
Adjusts the brightness in the
range [-100..100] and contrast
[-100..100].
adjustColorBalance
([shadows]
[, midtones]
[, highlights]
[, preserveLuminosity]
array of number
array of number
array of number
boolean
Adjusts the color balance of the
layer’s component channels. For
shadows, midtones, and
highlights, the array must
include three values in the
range [-100..100], which
represent cyan or red, magenta
or green, and yellow or blue,
when the document mode is
CMYK or RGB.
See
Document.mode.
adjustCurves
(curveShape)
array of array of number
Adjusts the tonal range of the
selected channel using up to
fourteen points.
Each value in the
curveShape
array is a point pair, an array of
an x and y integer value.
adjustLevels
(inputRangeStart,
inputRangeEnd,
inputRangeGamma,
outputRangeStart,
outputRangeEnd)
number
[0..253]
number [(start + 2)..255]
number [0.10..9.99]
number [0..253]
number [(start + 2)..255]
Adjusts the levels of the
selected channels
applyAddNoise
(amount,
distribution,
monochromatic)
number
[0.1..400]
NoiseDistribution
boolean
Applies the Add Noise filter
amount is a percentage value.
applyAverage
()
Applies the Average filter.
applyBlur
()
Applies the Blur filter.
applyBlurMore
()
Applies the Blur More filter.
applyClouds
()
Applies the Clouds filter.
applyCustomFilter
(characteristics,
scale,
offset)
array of number
number
number
Applies a custom filter.
The
characteristics array has
25 members.
See Adobe Photoshop CS6 Help
for specific instructions.