note 68523 added to function.imageline

From: Date: Mon, 31 Jul 2006 17:53:15 +0000
Subject: note 68523 added to function.imageline
Groups: php.notes 
Request: Send a blank email to php-notes+get-115379@lists.php.net to get a copy of this message
Use a brush to create a thick line instead of imagethickline(). To create a 3x3 red brush: $brush_size = 3; $brush = imagecreatetruecolor($brush_size,$brush_size); $brush_color = imagecolorallocate($brush,255,0,0); imagefill($brush,0,0,$brush_color); imagesetbrush($im,$brush); Then use imageline() or imagepolygon() with IMG_COLOR_BRUSHED as the color. To stop using the brush, destroy it: imagedestroy($brush); The brush can also be created from an existing image. ---- Server IP: 64.71.164.2 Probable Submitter: 128.156.10.80 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imageline.php Edit -- https://master.php.net/note/edit/68523 Del: integrated -- https://master.php.net/note/delete/68523/integrated Del: useless -- https://master.php.net/note/delete/68523/useless Del: bad code -- https://master.php.net/note/delete/68523/bad+code Del: spam -- https://master.php.net/note/delete/68523/spam Del: non-english -- https://master.php.net/note/delete/68523/non-english Del: in docs -- https://master.php.net/note/delete/68523/in+docs Del: other reasons-- https://master.php.net/note/delete/68523 Reject -- https://master.php.net/note/reject/68523 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115379) next »