Branch: Tag:

2005-11-14

2005-11-14 22:11:02 by Martin Nilsson <mani@lysator.liu.se>

image -> Image. No more import Image

Rev: lib/modules/Graphics.pmod/Graph.pmod/create_bars.pike:1.10
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.12
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1.10

1:   //! Graph sub-module for drawing pie-charts. - // $Id: create_pie.pike,v 1.9 2003/11/22 15:00:54 grubba Exp $ + // $Id: create_pie.pike,v 1.10 2005/11/14 22:11:02 nilsson Exp $   //   // These functions were written by Henrik "Hedda" Wallin (hedda@roxen.com)   // Create_pie can draw pie charts in different forms.
19:       string where_is_ax;    -  object(Image.image) piediagram; +  Image.Image piediagram;       init_bg(diagram_data);    piediagram=diagram_data["image"];
99:    ->write(UNICODE((string)(names[i]),diagram_data["encoding"]))    ->scale(0,diagram_data["fontsize"]);    else -  text[i]=Image.image(diagram_data["fontsize"], +  text[i]=Image.Image(diagram_data["fontsize"],    diagram_data["fontsize"]);       if (text[i]->xsize()<1) -  text[i]=Image.image(diagram_data["fontsize"], +  text[i]=Image.Image(diagram_data["fontsize"],    diagram_data["fontsize"]);       if (text[i]->xsize()>diagram_data["xsize"]/5+diagram_data["3Ddepth"])
249:    diagram_data["3Ddepth"];    }    object skugg; -  skugg=Image.image(piediagram->xsize(),piediagram->ysize(), 255,255,255); +  skugg=Image.Image(piediagram->xsize(),piediagram->ysize(), 255,255,255);    object foo; -  foo=Image.image(piediagram->xsize(),piediagram->ysize(), 255,255,255); +  foo=Image.Image(piediagram->xsize(),piediagram->ysize(), 255,255,255);    skugg->tuned_box(xc,yc-yr-1,xc+xr+1,1+yc+yr+diagram_data["3Ddepth"],    ({    ({255,255,255}),
391:    {       -  tbild=Image.image(imxsize, imysize, 255, 255, 255)-> +  tbild=Image.Image(imxsize, imysize, 255, 255, 255)->    tuned_box(0, 0 , 1, imysize,    ({a,a,b,b}));    tbild=tbild->paste(tbild->copy(0,0,0, imysize), 1, 0);