note 74856 added to function.imageline

From: Date: Tue, 01 May 2007 00:45:51 +0000
Subject: note 74856 added to function.imageline
Groups: php.notes 
Request: Send a blank email to php-notes+get-126002@lists.php.net to get a copy of this message
example of a Simple grid... bool imagegrid ( resource $image, int $width, int $Height, int $size, mixed $color ) <?php Header("Content-type: image/png"); $Width=450; $Height=450; $img = ImageCreateTrueColor($Width, $Height); $bg = imagecolorallocate($img, 255, 255, 255); imagefill($img, 0, 0, $bg); $grid = imagecolorallocate($img, 225, 245, 249); imagesetstyle($img, array($bg, $grid)); imagegrid($img, $Width, $Height, 10, IMG_COLOR_STYLED); //makegrid($img, $Width, $Height, 10, $grid); ImagePNG($img); ImageDestroy($img); function imagegrid($image, $w, $h, $s, $color) { for($iw=1; $iw<$w/$s; $iw++){imageline($image, $iw*$s, 0, $iw*$s, $w, $color);} for($ih=1; $ih<$h/$s; $ih++){imageline($image, 0, $ih*$s, $w, $ih*$s, $color);} } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 71.52.53.142 ---- Manual Page -- http://www.php.net/manual/en/function.imageline.php Edit -- https://master.php.net/note/edit/74856 Del: integrated -- https://master.php.net/note/delete/74856/integrated Del: useless -- https://master.php.net/note/delete/74856/useless Del: bad code -- https://master.php.net/note/delete/74856/bad+code Del: spam -- https://master.php.net/note/delete/74856/spam Del: non-english -- https://master.php.net/note/delete/74856/non-english Del: in docs -- https://master.php.net/note/delete/74856/in+docs Del: other reasons-- https://master.php.net/note/delete/74856 Reject -- https://master.php.net/note/reject/74856 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126002) next »