[libGD] #78 [Task opened] FilledRectangle() draws nothing using invalid corners
[email protected] (libGD)
| Newsgroups | php.gd.bugs |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Seth Price (mailseth)
Attached to Project - libGD
Summary - FilledRectangle() draws nothing using invalid corners
Task Type - Bug Report
Category - Drawing function
Status - Unconfirmed
Assigned To -
Operating System - BSD-like
Severity - Medium
Priority - Normal
Reported Version - 2.0.34
Due in Version - Undecided
Due Date - Undecided
Details - Well, here is a regression since the bundled version of PHP GD, but reading through the manual, it looks like I'm not passing the correct corners of the rectangle. So this may not be a bug, but a user error. I thought I would mention that it has changed anyway.
A fix wouldn't be too difficult, but it's up to you.
Expected result: a rectangle is drawn.
Actual result: no rectangle is drawn.
Reproduce code:
<code php><?php
header('Content-Type:image/png');
$img = imagecreatetruecolor(256, 256);
$bak = imagecolorexact($img,255,255,255);
imagefilledrectangle($img, 0,0, 255,255, $bak);
$black = imagecolorexact($img,0,0,0);
imageline($img, 40,175,42,177, $black);
imageline($img, 40,175,42,173, $black);
imagefilledrectangle($img, 41,176, 106,174, $black);
imagepng($img);
?></code>
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=78
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.