Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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);


Comment on Re: Imager transparent background instead of black
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-10-25 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls