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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.209 2000/03/02 04:18:37 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.210 2000/03/14 00:32:23 mast Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:546:    (float)args->ypad);    }    if(!font)    font = resolve_font(0);       if (!font)    error("gtext: No font (tried "+    (args->afont||args->font||args->nfont)+ ")!\n");       // Fonts and such are now initialized. -  img = GText.make_text_image(args, font, text, id); +  [img, Image.Image alpha] = GText.make_text_image(args, font, text, id);       // Now we have the image in 'img'.       if( !args->scroll && !args->fadein )    {    if(!args->notrans)    { -  array (int) bgcolor = parse_color(args->bgcolor); -  Image.Image alpha; -  alpha = img->distancesq( @bgcolor ); -  alpha->gamma( 8 ); +     return ([ "img":img, "alpha":alpha ]);    }    return img;    }       if(args->fadein)    {    int amount=2, steps=10, delay=10, initialdelay=0, ox;    string res = img->gif_begin();    sscanf(args->fadein,"%d,%d,%d,%d", amount, steps, delay, initialdelay);