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

version» Context lines:

pike.git/src/modules/Image/layers.c:1340:    {    pop_n_elems(args-1);    try_parameter_pair("image","alpha",image_layer_set_image);       try_parameter("mode",image_layer_set_mode);    try_parameter("alpha_value",image_layer_set_alpha_value);       try_parameter_pair("xoffset","yoffset",image_layer_set_offset);    try_parameter_pair("fill","fill_alpha",image_layer_set_fill);    try_parameter("tiled",image_layer_set_tiled); +  pop_stack();    }    else if (TYPEOF(Pike_sp[-args]) == T_INT && args>1    && TYPEOF(Pike_sp[1-args]) == T_INT)    {    rgb_group col=black,alpha=white;       get_all_args("create",args,"%d%d", /* watch the type: INT32 */    &(THIS->xsize),&(THIS->ysize));    if (args>2)    if (!image_color_arg(2-args,&col))
pike.git/src/modules/Image/layers.c:1371:    push_object(clone_object(image_program,5));       push_int(THIS->xsize);    push_int(THIS->ysize);    push_int(alpha.r);    push_int(alpha.g);    push_int(alpha.b);    push_object(clone_object(image_program,5));       image_layer_set_image(2); +  pop_n_elems(args);    }    else if (TYPEOF(Pike_sp[-args]) == T_OBJECT || args>1)    {    if (args>2)    {    image_layer_set_mode(args-2); -  pop_stack(); +  pop_n_elems(args-2);    args=2;    }    image_layer_set_image(args); -  +  pop_stack();    }    else    SIMPLE_ARG_TYPE_ERROR("create",1,"mapping|int|Image.Image");   }      /*** layer object *****************************************/      /*   **! method mapping(string:mixed)|string cast()   **! ([ "xsize":int,