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.24 1999/06/30 21:54:19 mirar Exp $ + **! $Id: layers.c,v 1.25 1999/07/01 02:16:55 per Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! <add_appendix name="layers" title="Image.Layer modes"><execute>   **! import Image;   **!   **! void write_image(string desc,
pike.git/src/modules/Image/layers.c:145:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.24 1999/06/30 21:54:19 mirar Exp $"); + RCSID("$Id: layers.c,v 1.25 1999/07/01 02:16:55 per 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:1126:    if (sp[-args].type==T_STRING||sp[-args].u.string->size_shift)    {    if (strncmp(sp[-args].u.string->str,"mapping",7)==0)    {    int n=0;    pop_n_elems(args);       push_text("xsize"); push_int(THIS->xsize); n++;    push_text("ysize"); push_int(THIS->ysize); n++;    push_text("image"); image_layer_image(0); n++; -  push_text("alpha"); image_layer_image(0); n++; +  push_text("alpha"); image_layer_alpha(0); n++;    push_text("xoffset"); push_int(THIS->xoffs); n++;    push_text("yoffset"); push_int(THIS->yoffs); n++;    push_text("alpha_value"); push_float(THIS->alpha_value); n++;    push_text("fill"); image_layer_fill(0); n++;    push_text("fill_alpha"); image_layer_fill_alpha(0); n++;    push_text("tiled"); push_int(THIS->tiled); n++;    push_text("mode"); image_layer_mode(0); n++;       f_aggregate_mapping(n*2);