note 82901 added to function.imagesetpixel
| From: | (doctor3datgmail) | Date: | Wed, 30 Apr 2008 22:44:44 +0000 |
| Subject: | note 82901 added to function.imagesetpixel | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138951@lists.php.net to get a copy of this message | ||
My last note doesn't do alpha properly, so make the following change to the appropriate lines:
$r = ($word & 0x7C00) >> 7;
$g = ($word & 0x03E0) >> 2;
$b = ($word & 0x001F) << 3;
$a = ($word & 0x8000) ? 127 : 0;
$color = imagecolorallocatealpha($image, $r, $g, $b, $a);
imagesetpixel($image, $x, $y, $color);
----
Server IP: 209.41.74.194
Probable Submitter: 72.70.34.145
----
Manual Page -- http://www.php.net/manual/en/function.imagesetpixel.php
Edit -- https://master.php.net/note/edit/82901
Del: integrated -- https://master.php.net/note/delete/82901/integrated
Del: useless -- https://master.php.net/note/delete/82901/useless
Del: bad code -- https://master.php.net/note/delete/82901/bad+code
Del: spam -- https://master.php.net/note/delete/82901/spam
Del: non-english -- https://master.php.net/note/delete/82901/non-english
Del: in docs -- https://master.php.net/note/delete/82901/in+docs
Del: other reasons-- https://master.php.net/note/delete/82901
Reject -- https://master.php.net/note/reject/82901
Search -- https://master.php.net/manage/user-notes.php