color_balance


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , since = "2.10" ) ]
public bool color_balance (TransferMode transfer_mode, bool preserve_lum, double cyan_red, double magenta_green, double yellow_blue)

Warning: color_balance is deprecated since 3.2.

Modify the color balance of the specified drawable.

Note:

Use filter "gimp:color-balance" instead.

Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, mid-tones, and highlights in an image to be affected differently. The 'preserve-lum' parameter, if TRUE, ensures that the luminosity of each pixel remains fixed.

Parameters:

this

The drawable.

transfer_mode

Transfer mode.

preserve_lum

Preserve luminosity values at each pixel.

cyan_red

Cyan-Red color balance.

magenta_green

Magenta-Green color balance.

yellow_blue

Yellow-Blue color balance.

Returns:

TRUE on success.