Layer.adjustGamma

Function/Meaning
Gamma Correction
Type
Method of Layer class
Syntax
adjustGamma(rgamma=1.0, rfloor=0, rceil=255, ggamma=1.0, gfloor=0, gceil=255, bgamma=1.0, bfloor=0, bceil=255)
Arguments
rgamma Specifies the gamma value for the red component ( 0.0 - 1.0 - 9.0 ).
rfloor Specifies the minimum output value for the red component ( 0 - 255 ).
rceil Specifies the maximum output value for the red component ( 0 - 255 ).
ggamma Specifies the gamma value for the green component ( 0.0 - 1.0 - 9.0 ).
gfloor Specifies the minimum output value for the green component ( 0 - 255 ).
gceil Specifies the maximum output value for the green component ( 0 - 255 ).
bgamma Specifies the gamma value for the blue component ( 0.0 - 1.0 - 9.0 ).
bfloor Specifies the minimum output value for the blue component ( 0 - 255 ).
bceil Specifies the maximum output value for the blue component ( 0 - 255 ).
Return Value
None (void)
Description
Performs gamma correction on the image.
Specifying 1.0 for the gamma value results in a linear gamma curve.
The minimum and maximum output values specify the floor and ceiling for the luminance of each component.
Setting the maximum value lower than the minimum value allows you to invert the image.
This method refers to the Layer.face property. If this is dfAddAlpha, the method uses a special gamma correction routine for additive alpha blending. This routine performs gamma correction on the component corresponding to alpha blending within the additive alpha blend, but does not perform gamma correction on the component corresponding to additive blending.