Layer.adjustGamma

Function/Meaning

Gamma correction

Type
Layerclassmethod of
Syntax
adjustGamma(rgamma=1, rfloor=0, rceil=255, ggamma=1, gfloor=0, gceil=255, bgamma=1, bfloor=0, bceil=255)
Arguments
rgamma

Specify the gamma value of the red component (0.0 to 1.0 to 9.0).

rfloor

Specify the minimum output value (0 to 255) for the red component.

rceil

Specifies the maximum output value (0 to 255) for the red component.

ggamma

Specify the gamma value of the green component (0.0 to 1.0 to 9.0).

gfloor

Specifies the minimum output value (0 to 255) for the green component.

gceil

Specify the maximum output value (0 to 255) of the green component.

bgamma

Specify the gamma value of the blue component (0.0 to 1.0 to 9.0).

bfloor

Specifies the minimum output value (0 to 255) for the blue component.

bceil

Specify the maximum output value (0 to 255) of the blue component.

Return value
None (void)
Explanation

Performs gamma correction on the image.
If you specify 1.0 for the gamma value, the gamma curve becomes a straight line.
The output minimum value and output maximum value specify the minimum and maximum values of the brightness of each component.
You can invert the image by setting the highest value to a value lower than the lowest value.
This method references the Layer.face property.
If this is dfAddAlpha, this method uses a special gamma correction routine for additive alpha synthesis.
This routine performs gamma correction for the components corresponding to alpha synthesis in additive alpha synthesis, but does not perform gamma correction for the components corresponding to additive synthesis.