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.28 1999/07/21 02:59:07 hubbe Exp $ + **! $Id: layers.c,v 1.29 1999/07/23 21:37:38 mirar 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:153:   **!   **! // write_image("top layer image","bi",b->image());   **! // write_image("top layer alpha","ba",b->alpha());   **!   **! // write_image("bottom layer image","ai",a->image());   **! // write_image("bottom layer alpha","aa",b->alpha());   **!   **! write_image("top layer","b",lay(({ltrans,b}))->image());   **! write_image("bottom layer","a",lay(({ltrans,a}))->image());   **! - **! write(mktag("tr",0,mktag("td",0,mktag("hr")))); + **! write(mktag("tr",0,mktag("td",0,"\240")));   **!   **! foreach (Layer()->available_modes(),string mode)   **! {   **! if ((&lt;"add","equal","replace","replace_hsv","darken",   **! "dissolve","screen","logic_equal">)[mode]) - **! write(mktag("tr",0,mktag("td",0,mktag("hr")))); + **! write(mktag("tr",0,mktag("td",0,"\240")));   **!   **! ({lc2,lc2b,li2,li2b,lr2,lzo1})->set_mode(mode);   **!   **! object r=   **! lay( ({ lay(({lca1,lc2}),0,0,80,80),   **! lay(({lc1,lc2b}),0,0,80,80)->set_offset(80,0),   **! lay(({li1,li2}),0,0,80,80)->set_offset(160,0),   **! lay(({li1,li2b}),0,0,80,80)->set_offset(240,0),   **! lay(({lr1,lr2}),0,0,80,80)->set_offset(320,0),   **! lay(({lzo0,lzo1}),400,0,160,80) }),
pike.git/src/modules/Image/layers.c:188:   **! }   **!   **! </execute>   **! </add_appendix>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.28 1999/07/21 02:59:07 hubbe Exp $"); + RCSID("$Id: layers.c,v 1.29 1999/07/23 21:37:38 mirar 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"