Method Image.Layer()->set_mode()
- Method
set_mode
Method mode
Method available_modes
objectset_mode(stringmode)
stringmode()
array(string) available_modes()- Description
-
Set/get layer mode. Mode is one of these:
"normal", "add", "subtract", "multiply", "divide", "modulo", "invsubtract", "invdivide", "invmodulo", "difference", "max", "min", "bitwise_and", "bitwise_or", "bitwise_xor",
"replace", "red", "green", "blue",
"replace_hsv", "hue", "saturation", "value", "color",
"darken", "lighten",
"dissolve", "behind", "erase",
available_modes() simply gives an array containing the names of these modes.
- Note
-
image and alpha channel must be of the same size, or canceled.