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.152 1998/09/20 08:33:23 neotron Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.153 1998/09/21 16:29:40 js 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:424:    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) +  if((float)args->scale >= 0.1 && !alpha)    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())    for(int y=0; y<ysize; y+=background->ysize())    b2->paste(background, x, y);    background = b2;    } else if(args->mirrortile) {
Roxen.git/server/modules/graphics/graphic_text.pike:1172:    " document.images[ri].src = hi.src;\n"    " setTimeout(\"top.window.status = '\"+txt+\"'\", 100);\n"    "}\n"    "</script>\n");      }         string magic_image(string url, int xs, int ys, string sn,    string image_1, string image_2, string alt, -  string mess,object id,string input,string extra_args) +  string mess,object id,string input,string extra_args,string lp)   { -  if(!id->supports->images) return alt; +  if(!id->supports->images) return (lp?lp:"")+alt+(lp?"</a>":"");    if(!id->supports->netscape_javascript)    return (!input)?    ("<a "+extra_args+"href=\""+url+"\"><img src=\""+image_1+"\" name="+sn+" border=0 "+    "alt=\""+alt+"\"></a>"):    ("<input type=image "+extra_args+" src=\""+image_1+"\" name="+input+">");       return    ("<script>\n"    " "+sn+"l = new Image("+xs+", "+ys+");"+sn+"l.src = \""+image_1+"\";\n"    " "+sn+"h = new Image("+xs+", "+ys+");"+sn+"h.src = \""+image_2+"\";\n"
Roxen.git/server/modules/graphics/graphic_text.pike:1454:       if(!defines->magic_java) res = magic_javascript_header(id);    defines->magic_java="yes";       return replace(res +    magic_image(url||"", size[0], size[1], "i"+(defines->mi++),    query_location()+num+"/"+quote(gt)+gif,    query_location()+num2+"/"+quote(gt)+gif,    (arg->alt?arg->alt:replace(gt, "\"","'")),    (magic=="magic"?0:magic), -  id,input?na||"submit":0,ea), +  id,input?na||"submit":0,ea,lp),    "</script>\n<script>","");    }    if(input)    return (pre+"<input type=image name=\""+na+"\" border=0 alt=\""+    (arg->alt?arg->alt:replace(gt,"\"","'"))+    "\" src="+query_location()+num+"/"+quote(gt)+gif    +" align="+(al || defalign)+ea+    " width="+size[0]+" height="+size[1]+">"+rest+post);       return (pre+(lp?lp:"")