note 68523 deleted from function.imageline by bjori

From: Date: Tue, 01 Aug 2006 09:01:04 +0000
Subject: note 68523 deleted from function.imageline by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115396@lists.php.net to get a copy of this message
Note Submitter: brent at ebrent dot net ---- 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.

« previous php.notes (#115396) next »