pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.12 1999/05/23 17:46:44 mirar Exp $ + **! $Id: layers.c,v 1.13 1999/05/29 14:31:20 mirar Exp $   **! class Layer   */      #include "global.h"   #include <config.h>      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.12 1999/05/23 17:46:44 mirar Exp $"); + RCSID("$Id: layers.c,v 1.13 1999/05/29 14:31:20 mirar Exp $");      #include "config.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:573:    pop_n_elems(args);    push_float(THIS->alpha_value);   }      /*   **! method object set_mode(string mode)   **! method string mode()   **! method array(string) available_modes()   **! Set/get layer mode. Mode is one of these:   **! - **! <tr><td valign=top align=left> - **! <b><tt>normal</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> + **! "normal", + **! "add", + **! "subtract", + **! "multiply", + **! "divide", + **! "modulo", + **! "invsubtract", + **! "invdivide", + **! "invmodulo", + **! "difference", + **! "max", + **! "min", + **! "bitwize_and", + **! "bitwize_or", + **! "bitwize_xor",   **! - **! <tr><td valign=top align=left> - **! <b><tt>addition</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> + **! "replace", + **! "red", + **! "green", + **! "blue",   **! - **! <tr><td valign=top align=left> - **! <b><tt>behind</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> + **! "replace_hsv", + **! "hue", + **! "saturation", + **! "value", + **! "color",   **! - **! <tr><td valign=top align=left> - **! <b><tt>color</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> + **! "darken", + **! "lighten",   **! - **! <tr><td valign=top align=left> - **! <b><tt>darken</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> + **! "dissolve", + **! "behind", + **! "erase",   **! - **! <tr><td valign=top align=left> - **! <b><tt>difference</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>dissolve</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>divide</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>erase</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>hue</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>lighten</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>multiply</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>overlay</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>replace</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>saturation</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>screen</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>subtract</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! - **! <tr><td valign=top align=left> - **! <b><tt>value</tt><b></br> - **! ? - **! </td><td align=left valign=top> - **! <illustration> return lena(); </illustration> - **! <td></tr> - **! +    **! <ref>available_modes</ref>() simply gives an array   **! containing the names of these modes.   **!   **! note:   **! image and alpha channel must be of the same size,   **! or canceled.   */      static void image_layer_set_mode(INT32 args)   {