RemoveGradient

Syntax

Document.RemoveGradient()

Parameters

None

Returns

Nothing

Remarks

Removes a linear gradient in the background level of the image, typically caused by moonlight or light pollution. This is similar to the FlattenBackground method, but often gives better results when the gradient truly is linear.

This method is equivalent to the Auto Remove Gradient command.