[rrd-users] Re: RRD bug with LINE1, 2, 3 and #000000

Tobias Oetiker oetiker at ee.ethz.ch
Sat Aug 2 01:49:31 MEST 2003


Yesterday Haroon Rafique wrote:

> Hi,
>
> First time poster. Been using rrdtool for the last 6 months or so. I'm
> running rrdtool 1.0.45 on a Gentoo Linux machine. libgd version is 2.0.15.
>
> Recently upgraded from 1.0.42 and noticed a quirky thing. I cannot get any
> LINE1, 2 or 3 to show up in the graph when I use the color #000000. If I
> simply replace the color with #000001 the (almost) black line reappears. I
> did not experience this behavior with 1.0.42, only with 1.0.45.
>
> Anyone else experience the same?

Haroon,

yes this bug has already been fixed in my working version ...

Use this in the MkLineBrush function of rrd_graph and all will be
well

  pen = gdImageColorAllocate(brush,
                             im->gdes[cosel].col.red,
                             im->gdes[cosel].col.green,
                             im->gdes[cosel].col.blue);

  gdImageColorTransparent(brush, gdImageColorAllocate(brush, 0, 0, 0));


cheers
tobi
>
> Regards,
> --
> Haroon Rafique
> <haroon.rafique at utoronto.ca>
>
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETZ J97, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker   +41(0)1-632-5286

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list