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.147 1998/08/26 17:48:03 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.148 1998/08/28 17:43:21 wellhard Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:419:    ((background = load_image(args->background, id)) ||    (sizeof(args->background)>1 &&    (background=Image.image(xsize,ysize, @(parse_color(args->background[1..]))))    && (background_is_color=1))))    {    object alpha;    if(args->alpha && (alpha = load_image(args->alpha,id)) && background_is_color)    {    xsize=MAX(xsize,alpha->xsize());    ysize=MAX(ysize,alpha->ysize()); +  if((float)args->scale) +  alpha=alpha->scale(1/(float)args->scale);    background=Image.image(xsize,ysize, @(parse_color(args->background[1..])));    }       if((float)args->scale >= 0.1)    background = background->scale(1.0/(float)args->scale);       if(args->tile)    {    object b2 = Image.image(xsize,ysize);    for(int x=0; x<xsize; x+=background->xsize())