note 88639 added to function.imagesetthickness

From: Date: Mon, 02 Feb 2009 01:33:29 +0000
Subject: note 88639 added to function.imagesetthickness
Groups: php.notes 
Request: Send a blank email to php-notes+get-150083@lists.php.net to get a copy of this message
Here is a custom function I wrote that addresses the line thickness issues with ellipses : function draw_oval ($image, $pos_x, $pos_y, $elipse_width, $elipse_height, $color, $px_thick) { $line = 0; $thickness = $px_thick; $elipse_w = $elipse_width; $elipse_h = $elipse_height; while ($line < $thickness) { imageellipse($image, $pos_x, $pos_y, $elipse_w, $elipse_h, $color); $line++; $elipse_w--; $elipse_h--; } } I hope you find this useful. ---- Server IP: 209.41.74.194 Probable Submitter: 66.138.19.165 ---- Manual Page -- http://www.php.net/manual/en/function.imagesetthickness.php Edit -- https://master.php.net/note/edit/88639 Del: integrated -- https://master.php.net/note/delete/88639/integrated Del: useless -- https://master.php.net/note/delete/88639/useless Del: bad code -- https://master.php.net/note/delete/88639/bad+code Del: spam -- https://master.php.net/note/delete/88639/spam Del: non-english -- https://master.php.net/note/delete/88639/non-english Del: in docs -- https://master.php.net/note/delete/88639/in+docs Del: other reasons-- https://master.php.net/note/delete/88639 Reject -- https://master.php.net/note/reject/88639 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150083) next »