|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » site_pageranks() » imagecreatefrompng() » htmlentities() » imagepng() » imagestring() » imagedestroy() » preg_match() » imagecolorallocate() » header() » fopen() » getimagesize() » session_start() » strstr() » preg_match_all() » strpos() » ob_start() » ob_flush() » flush() » str_replace() » array2vars() » nl2br() » htmlspecialchars() » setcookie() » urlencode() » preg_split() » ereg() » ereg_replace() » var_dump() Our Sponsors » Powerpointing » Rock Music Community - meet fans » Business Strategy Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.
Local search Connecticut furniture stores can be found at FurnitureCatch:
Furniture Stores Norwalk,
Furniture Stores Stamford,
Furniture Stores Greenwich,
Furniture Stores New Canaan,
Furniture Stores Darien
|
PHP Functions
Function: pdf_arc (PHP 3 >= 3.0.6, PHP 4, PECL) pdf_arc -- Draws an arc (counterclockwise)Descriptionbool pdf_arc ( resource pdfdoc, float x, float y, float r, float alpha, float beta )Add a counterclockwise circular arc from alpha to beta degrees with center ( x ; y ) and radius r . Actual drawing of the circle is performed by the next stroke or fill operation.
Example 1. pdf_arcn() example
<?php
// prepare document
$pdf = pdf_new();
pdf_open_file($pdf, "");
pdf_begin_page($pdf, 595, 842);
// an outlined arc
pdf_arc($pdf, 200, 700, 100, 0, 90);
pdf_stroke($pdf);
// a filled arc
pdf_arc($pdf, 200, 700, 50, 0, 90);
pdf_fill($pdf);
// an outlined and filled arc
pdf_setcolor($pdf, "fill", "gray", 0.8);
pdf_arc($pdf, 400, 700, 50, 0, 90);
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) |