Colors should allow 'transparent' as a value in addition to the current #RRGGBB values.
--
TWiki:Main/TaitCyrus - 2011-05-12
Allow support for
transparent
to be used in
colors
and
bgcolor
. Mostly to be used with spark* charts so chart backgrounds will blend in with the background they are placed on. So for
spark*
you would set
bgcolor="transparent transparent"
.
--
TaitCyrus - 2011-05-13
Thanks Tait for working on this!
Reading
http://search.cpan.org/~lds/GD-2.46/GD.pm - there is support for transparency:
open(PNG,"test.png");
$im = newFromPng GD::Image(PNG);
$white = $im->colorClosest(255,255,255); # find white
$im->transparent($white);
binmode STDOUT;
print $im->png;
--
TWiki:Main.PeterThoeny - 2011-05-13