in reply to GD::Image trueColor() hangup...
I have a feeling you'll want to ditch that option altogether and specify what type of new image you want with something like:
my $blank_rgb_image = GD::Image->newTrueColor( $width, $height );
or
explicitly.my $blank_palette_image = GD::Image->newPalette( $width, $height );
I've never tried to get the package-wide palette/truecolor option to work in new code, since GD.pm has offered specific methods for both for quite a while now.
You'll probably also want to get rid of the indirect object syntax in your code. It my not bite you now, but it's better to get into a habit of using direct syntax and not worry about it. In case you're wondering what that means, change for example:
tomy $foo = new GD::Image;
which does not suffer from the type of ambiguous parsing of the former.my $foo = GD::Image-new;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GD::Image trueColor() hangup...
by kalchas (Acolyte) on Mar 26, 2008 at 23:01 UTC | |
by mr_mischief (Monsignor) on Mar 27, 2008 at 06:03 UTC |