Bug #14766 Updated: color of imagefilledrectangle is not working

From: Date: Sun, 17 Mar 2002 16:53:40 +0000
Subject: Bug #14766 Updated: color of imagefilledrectangle is not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2694@lists.php.net to get a copy of this message
ID: 14766 Updated by: sander@php.net Reported By: sps@hosix.ntu-kpi.kiev.ua -Status: Open +Status: Closed Bug Type: GD related Operating System: Windows 98 -PHP Version: 4.0CVS-2001-12-30 +PHP Version: 4.0CVS-2001-12-3 New Comment: This is very likely to be not a bug in PHP but in GD. Previous Comments: ------------------------------------------------------------------------ [2001-12-30 05:59:52] sps@hosix.ntu-kpi.kiev.ua 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 this bug report at http://bugs.php.net/?id=14766&edit=1

« previous php.bugs (#2694) next »