Class: Operations.AdjustmentsOperation

PhotoEditorSDK. Operations.AdjustmentsOperation

Applies adjustments (brightness, saturation, contrast) to the image

new PhotoEditorSDK.Operations.AdjustmentsOperation(sdk, options)

sdk/operations/adjustments-operation.js, line 28

Creates a new AdjustmentsOperation

Name Type Description
sdk PhotoEditorSDK
options Object optional
Name Type Default Description
brightness Number 0 optional
saturation Number 1 optional
exposure Number 0 optional
contrast Number 1 optional
shadows Number 0 optional
highlights Number 1 optional

Extends

Members

staticPhotoEditorSDK.Operations.AdjustmentsOperation.identifierString

A unique string that identifies this operation. Can be used to select operations.

Default Value:
  • adjustments

Methods

dispose()

sdk/operations/adjustments-operation.js, line 87

Disposes this operation

getBrightness(){undefined}

Returns the brightness
Returns:
Name Type Description
brightness undefined The brightness

getClarity(){undefined}

Returns the clarity
Returns:
Name Type Description
clarity undefined The clarity

getContrast(){undefined}

Returns the contrast
Returns:
Name Type Description
contrast undefined The contrast

getExposure(){undefined}

Returns the exposure
Returns:
Name Type Description
exposure undefined The exposure

getGamma(){undefined}

Returns the gamma
Returns:
Name Type Description
gamma undefined The gamma

getHighlights(){undefined}

Returns the highlights
Returns:
Name Type Description
highlights undefined The highlights

getSaturation(){undefined}

Returns the saturation
Returns:
Name Type Description
saturation undefined The saturation

getShadows(){undefined}

Returns the shadows
Returns:
Name Type Description
shadows undefined The shadows

setBrightness(brightness)

Sets the brightness
Name Type Description
brightness undefined

setClarity(clarity)

Sets the clarity
Name Type Description
clarity undefined

setContrast(contrast)

Sets the contrast
Name Type Description
contrast undefined

setExposure(exposure)

Sets the exposure
Name Type Description
exposure undefined

setGamma(gamma)

Sets the gamma
Name Type Description
gamma undefined

setHighlights(highlights)

Sets the highlights
Name Type Description
highlights undefined

setSaturation(saturation)

Sets the saturation
Name Type Description
saturation undefined

setShadows(shadows)

Sets the shadows
Name Type Description
shadows undefined