Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Scale image problems

by SuicideJunkie (Vicar)
on Mar 20, 2013 at 18:02 UTC ( #1024579=note: print w/ replies, xml ) Need Help??


in reply to Scale image problems

$src->scale(xpixels=>400);
"scale() called in void context - scale() returns the scaled image"

Yep. Looks like void context to me too.

Why are you not saving the return value? The message is saying you should do:

my $resized = $src->scale(xpixels=>400);

Which puts the scale in scalar context

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2016-07-28 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (258 votes). Check out past polls.