Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Imager transparent background instead of black

by tonyc (Pilgrim)
on Nov 22, 2010 at 00:12 UTC ( #872839=note: print w/replies, xml ) Need Help??


in reply to Imager transparent background instead of black

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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872839]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2016-12-05 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (71 votes). Check out past polls.