Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.18 1996/12/10 04:40:34 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.19 1996/12/10 04:52:30 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";         array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",    "Makes a few new tags, which render text to gifs "
Roxen.git/server/modules/graphics/graphic_text.pike:163:   {    if(last_image_name==f) return last_image;    object file = File();    string data;    object img = Image();       if(!file->open(f,"r")) return 0;    if(!(data=file->read(0x7fffffff))) return 0;    if(!img->frompnm(data) && !img->fromgif(data)) return 0;    -  last_image_name=f; -  last_image=img; + // last_image_name=f; + // last_image=img;   //call_out(lambda(){last_image=last_image_name=0;}, 10); -  return img->copy();; +  return img/*->copy()*/;   }      object (Image) blur(object (Image) img, int amnt)   {    for(int i=0; i<amnt; i++)    img = img->apply_matrix( make_matrix((int)sqrt(img->ysize()+10)));    return img;   }      constant white = ({ 255,255,255 });