Bug #14766: color of imagefilledrectangle is not working

From: Date: Sun, 30 Dec 2001 10:59:52 +0000
Subject: Bug #14766: color of imagefilledrectangle is not working
Groups: php.dev 
Request: Send a blank email to php-dev+get-75339@lists.php.net to get a copy of this message
From: sps@hosix.ntu-kpi.kiev.ua Operating system: Windows 98 PHP version: 4.0CVS-2001-12-30 PHP Bug Type: *Graphics related Bug description: color of imagefilledrectangle is not working Rectangle is not colored with defined color. <?php Header ("Content-type: image/jpeg"); $im = @ImageCreateFromJPEG ("5.jpg"); $bgc = ImageColorAllocate ($im, 255, 255, 255); $tc = ImageColorAllocate ($im, 0, 0, 0); ImageFilledRectangle ($im, 0, 0, 150, 30, $bgc); ImageJpeg($im); ImageDestroy ($im); ?> php 4.0.4, gd version 1.6.2 if string $im = @ImageCreateFromJPEG ("5.jpg"); changed to $im = @ImageCreate(200,100); everything is ok. -- Edit bug report at: http://bugs.php.net/?id=14766&edit=1

« previous php.dev (#75339) next »