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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.91 1997/10/27 08:32:42 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.92 1997/11/09 18:29:37 grubba Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:239:   {    if(last_image_name == f && last_image) return last_image->copy();    string data;    object file;    object img = Image();       if(!(data=roxen->try_get_file(fix_relative(f, id),id)))    if(!(file=open(f,"r")) || (!(data=file->read())))    return 0;   //werror("Read "+strlen(data)+" bytes.\n"); -  if(!img->frompnm(data)) return 0; +  if (catch { if(!img->frompnm(data)) return 0;}) return 0;    last_image = img; last_image_name = f;    return img->copy();   }      object (Image) blur(object 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++)