Subject: | GD 2.46: filledRectangle does not fill |
Date: | Fri, 9 Sep 2011 14:10:48 +0200 |
To: | bug-GD [...] rt.cpan.org |
From: | Ulrich Weiss <Ulrich.Weiss [...] gmx.at> |
Hello!
I have discovered an interessting behaviour on GD 2.46:
filledRectangle(...) is only working correctly at first call.
After first call, filledRectangle does nothing.
However, this behaviour can not be reproduced on GD 2.44.
In the meantime, i have discovered a workaround: instead of filledRectangle,
filledPolygon works correctly also with GD 2.46.
Environment:
RHEL 5.3
Installed GD-2.46 (from CPAN)
Another environment, I have GD 2.44, where filledRectangle does correct
work:
Fedora 14
yum install perl-GD (perl-GD-2.44-4.fc14.i686)
Some information about the application:
my $im = new GD::Image(1188,300);
my $black = $im->colorAllocate(0,0,0);
my $white = $im->colorAllocate(255,255,255);
$im->filledRectangle(0,0,1188,300,$white); # Clear Picture (works always)
$im->filledRectangle(20,20,100,100,$black); # Does not work on GD 2.46 (works
on GD 2.44)
print $im->png();
best greetings!
Ulrich Weiss