note 73657 added to function.imagecolorat

From: Date: Tue, 06 Mar 2007 04:17:42 +0000
Subject: note 73657 added to function.imagecolorat
Groups: php.notes 
Request: Send a blank email to php-notes+get-124132@lists.php.net to get a copy of this message
imagecolorat() will display a Notice if you attempt to query a pixel which is out of bounds, and will return false : <?php $img = imagecreatefromjpeg('test.jpg'); var_dump(imagecolorat($img, -1, 0)); ?> Output : Notice: imagecolorat(): -1,0 is out of bounds in /test.php on line 4 bool(false) ---- Server IP: 216.235.15.211 Probable Submitter: 216.239.83.174 ---- Manual Page -- http://www.php.net/manual/en/function.imagecolorat.php Edit -- https://master.php.net/note/edit/73657 Del: integrated -- https://master.php.net/note/delete/73657/integrated Del: useless -- https://master.php.net/note/delete/73657/useless Del: bad code -- https://master.php.net/note/delete/73657/bad+code Del: spam -- https://master.php.net/note/delete/73657/spam Del: non-english -- https://master.php.net/note/delete/73657/non-english Del: in docs -- https://master.php.net/note/delete/73657/in+docs Del: other reasons-- https://master.php.net/note/delete/73657 Reject -- https://master.php.net/note/reject/73657 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124132) next »