本文整理汇总了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