![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Imager transparent background instead of blackby tonyc (Pilgrim) |
on Nov 22, 2010 at 00:12 UTC ( #872839=note: print w/replies, xml ) | Need Help?? |
By default Imager->new creates a 3 channel image, which has no alpha channel. To create a transparent image, create a 4 channel image: my $im = Imager->new(xsize => $width, ysize => $height, channels => 4);
In Section
Seekers of Perl Wisdom
|
|