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.75 2001/10/26 20:33:00 nilsson Exp $ + **! $Id: layers.c,v 1.76 2001/11/19 16:22:58 nilsson Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! appendix Image.Layer modes   **!   **! <dl compact>   **! <dt><i>The variables in the expression:</i></dt>
pike.git/src/modules/Image/layers.c:189:   **! return 0;   **! }   **!   **! </execute>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.75 2001/10/26 20:33:00 nilsson Exp $"); + RCSID("$Id: layers.c,v 1.76 2001/11/19 16:22:58 nilsson Exp $");      #include "image_machine.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:1144:   {    int i;    pop_n_elems(args);       for (i=0; i<LAYER_MODES; i++)    ref_push_string(layer_mode[i].ps);       f_aggregate(LAYER_MODES);   }    + /* + **! method array(string) description() + **! Layer descriptions + */   static void image_layer_descriptions(INT32 args)   {    int i;    pop_n_elems(args);       for (i=0; i<LAYER_MODES; i++)    push_string(make_shared_string(layer_mode[i].desc));       f_aggregate(LAYER_MODES);   }
pike.git/src/modules/Image/layers.c:1444:    }    image_layer_set_image(args);    pop_stack();    }    else    SIMPLE_BAD_ARG_ERROR("Image.Layer",1,"mapping|int|Image.Image");   }      /*** layer object *****************************************/    + /* + **! method mapping(string:mixed) cast() + **! ([ "xsize":int, + **! "ysize":int, + **! "image":image, + **! "alpha":image, + **! "xoffset":int, + **! "yoffset":int, + **! "fill":image, + **! "fill_alpha":image + **! "tiled":int, + **! "mode":string + **! ]) +  */   static void image_layer_cast(INT32 args)   {    if (!args)    SIMPLE_TOO_FEW_ARGS_ERROR("Image.Layer->cast",1);    if (Pike_sp[-args].type==T_STRING||Pike_sp[-args].u.string->size_shift)    {    if (strncmp(Pike_sp[-args].u.string->str,"mapping",7)==0)    {    int n=0;    pop_n_elems(args);