本文整理匯總了PHP中Cpdf::ellipse方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cpdf::ellipse方法的具體用法?PHP Cpdf::ellipse怎麽用?PHP Cpdf::ellipse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cpdf
的用法示例。
在下文中一共展示了Cpdf::ellipse方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ellipse
public function ellipse($x, $y, $radiusX, $radiusY, $rotation, $startAngle, $endAngle, $anticlockwise)
{
if (self::DEBUG) {
echo __FUNCTION__ . "\n";
}
$this->canvas->ellipse($x, $y, $radiusX, $radiusY, 0, 8, 0, 360, false, false, false, false);
}
示例2: circle
function circle($x, $y, $r1, $color, $width = null, $style = null, $fill = false)
{
$this->_set_fill_color($color);
$this->_set_stroke_color($color);
if (!$fill && isset($width)) {
$this->_set_line_style($width, "round", "round", $style);
}
$this->_pdf->ellipse($x, $this->y($y), $r1, 0, 0, 8, 0, 360, 1, $fill);
}
示例3: circle
function circle($x, $y, $r1, $color, $width = null, $style = null, $fill = false, $blend = "Normal", $opacity = 1.0)
{
$this->_set_fill_color($color);
$this->_set_stroke_color($color);
$this->_set_line_transparency($blend, $opacity);
$this->_set_fill_transparency($blend, $opacity);
if (!$fill && isset($width)) {
$this->_set_line_style($width, "round", "round", $style);
}
$this->_pdf->ellipse($x, $this->y($y), $r1, 0, 0, 8, 0, 360, 1, $fill);
}
示例4: getXfromRightMargin
$page_length = 792;
// Length of page
$page_width = 612;
// Length of page
$bottom_margin = 30;
$left_margin = 20;
$right_margin = 20;
$line_height = strip_tags($_GET['line_height']);
// line height
//+----------------------------------------------------------------------+
//| CREATE PUNCH HOLES AND ADJUST LEFT MARGIN
//+----------------------------------------------------------------------+
if (isset($_GET['show_punch_holes'])) {
if ($_GET['show_punch_holes'] == "on") {
$left_margin = 40;
$pdf->ellipse(20, 750, 10);
$pdf->ellipse(20, 410, 10);
$pdf->ellipse(20, 75, 10);
}
}
//+----------------------------------------------------------------------+
//| CALCULATE POSITIONS
//+----------------------------------------------------------------------+
function getXfromRightMargin($myString, $mySize)
{
global $pdf, $page_width, $left_margin;
$newX = $page_width + $left_margin - $pdf->getTextWidth($mySize, $myString);
return $newX;
}
//+----------------------------------------------------------------------+
//| DRAW NOTEPAPER BOX AND LINES