note 98049 added to function.imagesetpixel

From: Date: Sun, 23 May 2010 06:44:46 +0000
Subject: note 98049 added to function.imagesetpixel
Groups: php.notes 
Request: Send a blank email to php-notes+get-169527@lists.php.net to get a copy of this message
To create an image and set its content fully transparent: <?php $width = 100; $height = 100; $img = imagecreatetruecolor($width, $height); imageSaveAlpha($img, true); imageAlphaBlending($img, false); $transparent = imageColorAllocateAlpha($img, 0, 0, 0, 127); imagefilledrectangle($img, 0, 0, $width-1, $height-1, $transparent); imageAlphaBlending($img, true); /* add content to the transparent image, then you display it: */ header("Content-type: image/png"); imagepng($img); imagedestroy($img); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 201.83.16.235 ---- Manual Page -- http://www.php.net/manual/en/function.imagesetpixel.php Edit -- https://master.php.net/note/edit/98049 Del: integrated -- https://master.php.net/note/delete/98049/integrated Del: useless -- https://master.php.net/note/delete/98049/useless Del: bad code -- https://master.php.net/note/delete/98049/bad+code Del: spam -- https://master.php.net/note/delete/98049/spam Del: non-english -- https://master.php.net/note/delete/98049/non-english Del: in docs -- https://master.php.net/note/delete/98049/in+docs Del: other reasons-- https://master.php.net/note/delete/98049 Reject -- https://master.php.net/note/reject/98049 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169527) next »