note 98368 added to function.imagickdraw-polyline

From: Date: Fri, 11 Jun 2010 03:51:08 +0000
Subject: note 98368 added to function.imagickdraw-polyline
Groups: php.notes 
Request: Send a blank email to php-notes+get-170041@lists.php.net to get a copy of this message
<?php //draw a filled Isosceles Triangle $width = 601; $height = 601; $max_x = $width - 1; $max_y = $height - 1; $mid_y = $max_y / 2; $mid_x = $max_x / 2; $fillcolor = '#F00F00'; try { $lo_img = new Imagick(); $lo_img->newImage( $width, $height, new ImagickPixel('transparent')); $draw = new ImagickDraw(); $draw->setFillColor($fillcolor); $draw->setStrokeWidth( 1 ); //start point //end point $co_ords = array( array( 'x' => $mid_x, 'y' => 0 ),array('x'=>0,'y'=>$max_y) ,array( 'x' => 0, 'y' => $max_y ),array('x'=>$max_x,'y'=>$max_y) ,array( 'x' => $mid_x, 'y' => 0 ),array('x'=>$max_x,'y'=>$max_y) ); $draw->polyline($co_ords); $lo_img->drawImage( $draw ); $lo_img->setImageFormat( "png" ); header( "Content-Type: image/png" ); echo $lo_img; $lo_img->destroy(); $draw->destroy(); exit; } catch (Exception $ex) { print_r($ex); return; } ---- Server IP: 202.89.58.1 Probable Submitter: 210.48.103.106 ---- Manual Page -- http://www.php.net/manual/en/function.imagickdraw-polyline.php Edit -- https://master.php.net/note/edit/98368 Del: integrated -- https://master.php.net/note/delete/98368/integrated Del: useless -- https://master.php.net/note/delete/98368/useless Del: bad code -- https://master.php.net/note/delete/98368/bad+code Del: spam -- https://master.php.net/note/delete/98368/spam Del: non-english -- https://master.php.net/note/delete/98368/non-english Del: in docs -- https://master.php.net/note/delete/98368/in+docs Del: other reasons-- https://master.php.net/note/delete/98368 Reject -- https://master.php.net/note/reject/98368 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170041) next »