in reply to Re: GD::Image trueColor() hangup...
in thread GD::Image trueColor() hangup...

Hi Mr. M, Thanks for the response... I've gotten rid of the indirect syntax (at least I think I've gotten rid of all of it), which certainly is aesthetically pleasing to me :-). However, I'm still not able to get the script working. I'm all for creating the image without bringing trueColor() into the mix separately. But in order to know the height and width of the image, I need to be able to getbounds() on the source image. The code I've pieced together does this after making $buildable. Is there another way to get the height and width of the original image? Cheers, K.

Replies are listed 'Best First'.
Re^3: GD::Image trueColor() hangup...
by mr_mischief (Monsignor) on Mar 27, 2008 at 06:03 UTC
    I don't see any problem with calling getbounds() where you do. The only problems I see are that you've got '=>' instead of '->' and that there's a space between that and the name of the method.

    IOW, change $buildable=> getbounds() to $buildable->getbounds().

    You might also want to change from  (my $width, my $height) to my ( $width, $height ) on that line. The syntax you're using gets the job done, but it's not the way you'll see most people writing that.