note 73223 added to function.imagerectangle

From: Date: Tue, 13 Feb 2007 23:09:40 +0000
Subject: note 73223 added to function.imagerectangle
Groups: php.notes 
Request: Send a blank email to php-notes+get-123343@lists.php.net to get a copy of this message
Matt, I agree that drawing 100 boxes for a 10x10 square is ludicrous. However, if we're going to talk about the best way to draw it in GD, you're still off. Since a rectangle will draw two vertical lines in one draw, we should use it to our advantage. You can draw 5 rectangles that have the tops and bottoms outside of the image, and there you have your ten rows. Draw 5 more who's sides are out of the image and you have your columns. We just drew a 10x10 (you could do 11x11) grid in 10 draw operations. :) ---- Server IP: 216.194.113.175 Probable Submitter: 68.63.188.52 ---- Manual Page -- http://www.php.net/manual/en/function.imagerectangle.php Edit -- https://master.php.net/note/edit/73223 Del: integrated -- https://master.php.net/note/delete/73223/integrated Del: useless -- https://master.php.net/note/delete/73223/useless Del: bad code -- https://master.php.net/note/delete/73223/bad+code Del: spam -- https://master.php.net/note/delete/73223/spam Del: non-english -- https://master.php.net/note/delete/73223/non-english Del: in docs -- https://master.php.net/note/delete/73223/in+docs Del: other reasons-- https://master.php.net/note/delete/73223 Reject -- https://master.php.net/note/reject/73223 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123343) next »