adjustBrightness()

Description

Adjusts the brightness of a document in the editor.

Syntax

func adjustBrightness(brightness:Int)

Parameters

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

Return value

Void

Exception

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

Example