note 21460 added to function.imagearc
| From: | jinny at 263 dot net | Date: | Tue, 14 May 2002 02:27:19 +0000 |
| Subject: | note 21460 added to function.imagearc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30614@lists.php.net to get a copy of this message | ||
imagesetstyle() sets the style to be used by all line drawing functions when drawing with the
special color .
Here goes a example of drawing a dashed-line circle.enjoy!
<?php
header("Content-type: image/jpeg");
$im = imagecreate(100,100);
$b = imagecolorallocate ($im, 0, 0, 0);
$w = imagecolorallocate ($im, 255, 255, 255);
$style = array ($b,$b,$b,$b,$b,$w,$w,$w,$w,$w);
imagesetstyle ($im, $style);
imagearc($im,50,50,100,100,0,360,IMG_COLOR_STYLED);
imagejpeg($im);
imagedestroy($im);
?>
--
http://www.php.net/manual/en/function.imagearc.php
http://master.php.net/manage/user-notes.php?action=edit+21460
http://master.php.net/manage/user-notes.php?action=delete+21460
http://master.php.net/manage/user-notes.php?action=reject+21460