Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Imager transparent background instead of black

by tonyc (Friar)
on Nov 22, 2010 at 00:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://872839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-05-22 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found