Layer.adjustGamma

機能/意味
Gamma correction
タイプ
Layerクラスのメソッド
構文
adjustGamma(rgamma=1.0, rfloor=0, rceil=255, ggamma=1.0, gfloor=0, gceil=255, bgamma=1.0, bfloor=0, bceil=255)
引数
rgamma  Specify the gamma value of the red component (0.0 to 1.0 to 9.0).
rfloor  Specify the minimum output value of the red component (0 to 255).
rceil  Specify the maximum output value of the red component (0 to 255).
ggamma  Specify the gamma value of the green component (0.0 to 1.0 to 9.0).
gfloor  Specify the minimum output value of the green component (0 to 255).
gceil  Specify the maximum output value of the green component (0 to 255).
bgamma  Specify the gamma value of the blue component (0.0 to 1.0 to 9.0).
bfloor  Specify the minimum output value of the blue component (0 to 255).
bceil  Specify the maximum output value of the blue component (0 to 255).
戻り値
なし (void)
説明
 Performs gamma correction on the image.
 Specifying 1.0 as the gamma value makes the gamma curve a straight line.
 The output minimum and output maximum specify the minimum and maximum brightness of each component.
 You can invert the image by setting the highest 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 compositing. This routine performs gamma correction on components equivalent to alpha synthesis in additive alpha synthesis, but does not perform gamma correction on components equivalent to additive synthesis.