[rrd-users] Re: How to get rid of 3d border and make non-graph area transparent?

Ben Ginter bginter at asicommunications.com
Tue Sep 28 00:04:47 MEST 1999


Hrm, wasn't too hard after all.

I commented out the border and added the following line around line 2214
in rrd_graph.c:

<    gdImageInterlace(gif, im->interlaced);
<
>    gdImageColorTransparent(gif, graph_col[GRC_BACK].i);

Whala, transparent background.  Fun, fun.

That'd be a nice configure script option, I think.

Ben


On Mon, 27 Sep 1999, Tobias Oetiker wrote:

> Friday you sent me mail regarding [rrd-users] How to get rid of 3d border...:
> 
> *> Hello,
> *> 
> *> With MRTG, I went into the rateup source and uncommented transparency
> *> which made the graphs look very nice on the NOC site I developed.  
> *> 
> *> I've looked at gifsize.c in the rrdtool distribution and it appears that
> *> would be the place to make the modification but I'm not quite sure how to
> *> do it without grappling with the old GD docs.  
> *> 
> *> Does anyone have a patch for this laying around?  Or maybe just a quick
> *> pointer (Tobi :-) ?
> *> 
> *> Thanks,
> 
> in rrd_graph.c search for     /* draw 3d border */
> 
> cheers
> tobi
> *> 
> *> Ben Ginter
> *> 
> *> 
> *> --
> *> * To unsubscribe from the rrd-users mailing list, send a message with the
> *>   subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
> *> 
> *> 
> 
> -- 
>  ______    __   _
> /_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
>  / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
> /_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker
> 
> --
> * To unsubscribe from the rrd-users mailing list, send a message with the
>   subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
> 
> 

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list