adjustContrast()

Description

Adjusts the contrast of an image in the editor.

Syntax

func adjustContrast(contrast:Int) -> Void

Parameters

contrast:Int the amount to increase/decrease the contrast by, ranging from -100 to 100. Negative values indicate decreasing contrast while positive values indicate increasing contrast. Each adjustment made to the image is based on the current contrast.

Return value

void

Exception

Circumstance Exception thrown
The value you set is not between -100 and 100. DcsValueOutOfRangeException

Example