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.23 1997/01/27 00:00:20 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.23.2.1 1997/02/04 21:39:44 grubba 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:182:    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;   //call_out(lambda(){last_image=last_image_name=0;}, 10);    return img/*->copy()*/;   }    - object (Image) blur(object (Image) img, int amnt) + object (Image) blur(object /* (Image) */ img, int amnt)   {    img->setcolor(0,0,0);    img = img->autocrop(amnt, 0,0,0,0, 0,0,0);       for(int i=0; i<amnt; i++)    img = img->apply_matrix( make_matrix((int)sqrt(img->ysize()+20)));    return img;   }      object (Image) outline(object (Image) on, object (Image) with,
Roxen.git/server/modules/graphics/graphic_text.pike:257:    in->paste_mask(corner2, corner2->color(70,70,70), -1, -1);       corner = corner2 = pix = 0;       return in;   }         object (Image) make_text_image(mapping args, object font, string text)   { -  object (Image) text_alpha=font->write(@(text/"\n")); +  object /* (Image) */ text_alpha=font->write(@(text/"\n"));    int xoffset=0, yoffset=0;       if(!text_alpha->xsize() || !text_alpha->ysize())    text_alpha = Image(10,10, 0,0,0);      // perror("Making image of '%s', args=%O\n", text, args);       if(int op=((((int)args->opaque)*255)/100)) // Transparent text...    text_alpha=text_alpha->color(op,op,op);