|
Home
iRate! Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » htmlentities() » imagecreatefrompng() » site_pageranks() » imagepng() » imagestring() » imagedestroy() » header() » imagecolorallocate() » preg_match() » session_start() » getimagesize() » urlencode() » ob_start() » flush() » strpos() » str_replace() » htmlspecialchars() » array2vars() » fopen() » nl2br() » preg_match_all() » setcookie() » strstr() » ob_flush() » ereg() » preg_split() » ereg_replace() » var_dump() Our Sponsors » Weblog Community » Listen to Podcasts » Rock Music Community - meet fans Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email Tabpole[AT]Gmail[DOT]com. |
PHP Functions
Function: pdf_circle (PHP 3 >= 3.0.6, PHP 4, PECL) pdf_circle -- Draws a circleDescriptionbool pdf_circle ( resource pdfdoc, float x, float y, float r )Add a circle with center ( x , y ) and radius r to the current page. Actual drawing of the circle is performed by the next stroke or fill operation. Returns TRUE on success or FALSE on failure.
Example 1. pdf_circle() example
<?php
// prepare document
$pdf = pdf_new();
pdf_open_file($pdf, "");
pdf_begin_page($pdf, 595, 842);
// an outlined circle
pdf_circle($pdf, 200, 700, 100);
pdf_stroke($pdf);
// a filled circle
pdf_circle($pdf, 200, 700, 50);
pdf_fill($pdf);
// an outlined and filled circle
pdf_setcolor($pdf, "fill", "gray", 0.3);
pdf_circle($pdf, 400, 700, 50);
pdf_fill_stroke($pdf);
// finish document
pdf_end_page($pdf);
pdf_close($pdf);
header("Content-type: application/pdf");
echo pdf_get_buffer($pdf);
pdf_delete($pdf);
?>
Related Function(s) |