From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to