STROKE
STROKE = 'S'
Style constants
Pdf page path class
setFillColor(\Pop\Pdf\Document\Page\Color\ColorInterface $color) : \Pop\Pdf\Document\Page\Path
Set the path fill color
\Pop\Pdf\Document\Page\Color\ColorInterface | $color |
setStrokeColor(\Pop\Pdf\Document\Page\Color\ColorInterface $color) : \Pop\Pdf\Document\Page\Path
Set the path stroke color
\Pop\Pdf\Document\Page\Color\ColorInterface | $color |
setStroke(integer $width, integer $dashLength = null, integer $dashGap = null) : \Pop\Pdf\Document\Page\Path
Set the stroke properties
integer | $width | |
integer | $dashLength | |
integer | $dashGap |
setStyle(string $style) : \Pop\Pdf\Document\Page\Path
Set the style
string | $style |
openLayer() : \Pop\Pdf\Document\Page\Path
Open a graphics state layer
closeLayer() : \Pop\Pdf\Document\Page\Path
Close a graphics state layer
drawLine(integer $x1, integer $y1, integer $x2, integer $y2) : \Pop\Pdf\Document\Page\Path
Draw a line
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 |
drawRectangle(integer $x, integer $y, integer $w, integer $h = null) : \Pop\Pdf\Document\Page\Path
Draw a rectangle
integer | $x | |
integer | $y | |
integer | $w | |
integer | $h |
drawRoundedRectangle(integer $x, integer $y, integer $w, integer $h = null, integer $rx = 10, integer $ry = null) : \Pop\Pdf\Document\Page\Path
Draw a rounded rectangle
integer | $x | |
integer | $y | |
integer | $w | |
integer | $h | |
integer | $rx | |
integer | $ry |
drawSquare(integer $x, integer $y, integer $w) : \Pop\Pdf\Document\Page\Path
Draw a square
integer | $x | |
integer | $y | |
integer | $w |
drawRoundedSquare(integer $x, integer $y, integer $w, integer $rx = 10, integer $ry = null) : \Pop\Pdf\Document\Page\Path
Draw a rounded square
integer | $x | |
integer | $y | |
integer | $w | |
integer | $rx | |
integer | $ry |
drawPolygon(array $points) : \Pop\Pdf\Document\Page\Path
Draw a polygon
array | $points |
drawEllipse(integer $x, integer $y, integer $w, integer $h = null) : \Pop\Pdf\Document\Page\Path
Draw an ellipse
integer | $x | |
integer | $y | |
integer | $w | |
integer | $h |
drawCircle(integer $x, integer $y, integer $w) : \Pop\Pdf\Document\Page\Path
Draw a circle
integer | $x | |
integer | $y | |
integer | $w |
drawArc(integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null) : \Pop\Pdf\Document\Page\Path
Draw an arc
integer | $x | |
integer | $y | |
integer | $start | |
integer | $end | |
integer | $w | |
integer | $h |
drawChord(integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null) : \Pop\Pdf\Document\Page\Path
Draw a chord
integer | $x | |
integer | $y | |
integer | $start | |
integer | $end | |
integer | $w | |
integer | $h |
drawPie(integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null) : \Pop\Pdf\Document\Page\Path
Draw a pie slice
integer | $x | |
integer | $y | |
integer | $start | |
integer | $end | |
integer | $w | |
integer | $h |
drawOpenCubicBezierCurve(integer $x1, integer $y1, integer $x2, integer $y2, integer $bezierX1, integer $bezierY1, integer $bezierX2, integer $bezierY2) : \Pop\Pdf\Document\Page\Path
Draw an open cubic bezier curve
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $bezierX1 | |
integer | $bezierY1 | |
integer | $bezierX2 | |
integer | $bezierY2 |
drawClosedCubicBezierCurve(integer $x1, integer $y1, integer $x2, integer $y2, integer $bezierX1, integer $bezierY1, integer $bezierX2, integer $bezierY2) : \Pop\Pdf\Document\Page\Path
Draw a closed cubic bezier curve
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $bezierX1 | |
integer | $bezierY1 | |
integer | $bezierX2 | |
integer | $bezierY2 |
drawOpenQuadraticBezierCurve(integer $x1, integer $y1, integer $x2, integer $y2, integer $bezierX, integer $bezierY, boolean $first = true) : \Pop\Pdf\Document\Page\Path
Draw an open quadratic bezier curve, single control point
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $bezierX | |
integer | $bezierY | |
boolean | $first |
drawClosedQuadraticBezierCurve(integer $x1, integer $y1, integer $x2, integer $y2, integer $bezierX, integer $bezierY, boolean $first = true) : \Pop\Pdf\Document\Page\Path
Draw an open quadratic bezier curve, single control point
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $bezierX | |
integer | $bezierY | |
boolean | $first |