Extracted from Pike v7.4 release 341 at 2005-11-21.
pike.ida.liu.se
[Top]
predef::
Image
Image.Layer

Method Image.Layer()->available_modes()


Method available_modes

object set_mode(string mode)
string mode()
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.