note 52184 added to function.imageline

From: Date: Sat, 23 Apr 2005 14:28:08 +0000
Subject: note 52184 added to function.imageline
Groups: php.notes 
Request: Send a blank email to php-notes+get-88449@lists.php.net to get a copy of this message
<?php // An easy bit of code showing how you can use the ImageLine() function to create gradients // Create An Image 255x255 $img = ImageCreateTrueColor(255, 255); $plotD = 0; while($plotD < 256) { // Draw a line and move it down and make it lighter to get the gradient effect ImageLine($img, 0, $plotD , 255, $plotD, ImageColorAllocate($img, $plotD, $plotD, $plotD)); $plotD++; } Header("Content-type: image/png"); ImagePng($img); ImageDestroy($img); ?> ---- Manual Page -- http://www.php.net/manual/en/function.imageline.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52184 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52184&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52184&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52184&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52184&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52184&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52184&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88449) next »