note 108353 added to function.imagecolorallocate

From: Date: Thu, 19 Apr 2012 08:02:59 +0000
Subject: note 108353 added to function.imagecolorallocate
Groups: php.notes 
Request: Send a blank email to php-notes+get-187236@lists.php.net to get a copy of this message
Better one I think. <3 <?php function Grid($Img, $X, $Y, $Width, $Height, $Cols, $Rows, $color) { $CellWidth = $Width / $Cols; $CellHeight = $Height / $Rows; for($i = 0; $i <= $Cols; $i++) { imageline($Img, $X + $i * $CellWidth, $Y, $X + $i * $CellWidth, $Y + $Height, $color); } for($i = 0; $i <= $Rows; $i++) { imageline($Img, $X, $Y + $i * $CellHeight, $X + $Width, $Y + $i * $CellHeight, $color); } } ?> Greets from Poland. ---- Server IP: 69.147.83.197 Probable Submitter: 83.7.2.30 ---- Manual Page -- http://www.php.net/manual/en/function.imagecolorallocate.php Edit -- https://master.php.net/note/edit/108353 Del: integrated -- https://master.php.net/note/delete/108353/integrated Del: useless -- https://master.php.net/note/delete/108353/useless Del: bad code -- https://master.php.net/note/delete/108353/bad+code Del: spam -- https://master.php.net/note/delete/108353/spam Del: non-english -- https://master.php.net/note/delete/108353/non-english Del: in docs -- https://master.php.net/note/delete/108353/in+docs Del: other reasons-- https://master.php.net/note/delete/108353 Reject -- https://master.php.net/note/reject/108353 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187236) next »