note 61301 added to function.imageline

From: Date: Mon, 30 Jan 2006 19:43:01 +0000
Subject: note 61301 added to function.imageline
Groups: php.notes 
Request: Send a blank email to php-notes+get-102746@lists.php.net to get a copy of this message
Here is a function which draws lines that cross at a specific point [It may need some tweaking]: <?php // Image Cross by Matt Evans // $im - image resource // $x - x coordinate where the lines should cross // $y - y coordinate where the lines should cross // $size - the length of each line // $colour - the colour of the cross function imagecross($im, $x, $y, $size = 5, $colour) { imageline($im, $x+$size/2, $y+$size/2, $x-$size/2, $y-$size/2, $colour); imageline($im, $x-$size/2, $y+$size, $x+$size/2, $y-$size, $colour); } // Example imagecross($im, 50, 50, 5, $crosscolour); ?> ---- Server IP: 84.18.202.180 Probable Submitter: 62.252.212.52 ---- Manual Page -- http://www.php.net/manual/en/function.imageline.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61301 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61301&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61301&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102746) next »