[libGD] #186 [Task opened] Tiling true colour with palette image does not work
[email protected] Thu, 27 Nov 2008 20:11:14 +0100 (CET)
| 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 - Marko Vukovic (marko) Attached to Project - libGD Summary - Tiling true colour with palette image does not work Task Type - Bug Report Category - Drawing function Status - Unconfirmed Assigned To - Operating System - All Severity - Medium Priority - Normal Reported Version - 2.0.35 Due in Version - Undecided Due Date - Undecided Details - The bug reported in the bug #32 has not been fixed properly. The problem is when the destination image is true colour and tile is palette based. im->transparent in the tile image is just the palette index, and we can not compare with the 31 bit true colour. This is one way to fix the problem: <code> -----[939 changed to 939]----- < p = gdImageGetTrueColorPixel (im->tile, srcx, srcy); --- > p = gdImageGetPixel (im->tile, srcx, srcy); -----[941 changed to 941]----- < gdImageSetPixel (im, x, y, p); --- > gdImageSetPixel (im, x, y, gdImageGetTrueColorPixel (im->tile, srcx, srcy)); </code> More information can be found at the following URL: http://bugs.libgd.org/?do=details&task_id=186 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.