Dr.Ruud wrote:
Daniel Kasak schreef:

I'm after a Perl graphing library that includes alpha blending
support. I've checked out GD::Graph, but it *doesn't* support alpha
blending. Are there any options? I know of jpgraph for PHP ( which is
excellent for open-source stuff, but the commercial license is too
expensive ).

If PHP is OK, check out PEAR:Image_Graph http://pear.veggerby.dk/
Image examples:
http://pear.veggerby.dk/samples/show/id/image_fill/
http://pear.veggerby.dk/samples/show/id/misc04/
http://pear.veggerby.dk/samples/show/id/misc05/ (2 Y-axis)
http://pear.veggerby.dk/samples/show/id/multiple_plots/
http://pear.veggerby.dk/samples/show/id/plot_odo/
http://pear.veggerby.dk/samples/show/id/plot_radar/
http://pear.veggerby.dk/samples/show/id/plot_radar_smooth/

Alpha blending is implicit in GD though (inside the color information),
so you should be able to use it.
See http://search.cpan.org/dist/GD/GD.pm (colorAllocateAlpha(),
saveAlpha(1), alphaBlending(0), PNG).
The set_clr() of GD::Graph could easily be enhanced.
But PEAR::Image_Graph already has all that, and much more.

I'm not too familiar with the image libraries in Perl or PHP, nor am I too familiar with "alpha blending" itself. But... I thought I'd throw a suggestion your way that I haven't seen on this thread: http://www.imagemagick.org/script/perl-magick.php . This program allows one to edit characteristics of the alpha channel (among other things), so it may be able to help with what you want to do. :-)


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to