SetaPDF_Core_Canvas_StandardOperators Abstract canvas helper class for standard operators

File: /SetaPDF v2/Core/Canvas/StandardOperators.php

Class hierarchy

Summary

Properties

$_canvas

The origin canvas object


Methods

__construct()

The constructor.

Parameters
$canvas : SetaPDF_Core_Canvas
 

addCurrentTransformationMatrix()

Proxy method for adding a transformation matrix on the canvas.

Parameters
$a
 
$b
 
$c
 
$d
 
$e
 
$f
 
See

cleanUp()

Release objects to free memory and cycled references.

After calling this method the instance of this object is unusable!

draw()

Get the draw helper.

path()

Get the path helper.

restoreGraphicState()

Proxy method for restoring the graphic state on the canvas.

See

rotate()

public SetaPDF_Core_Canvas_StandardOperators::rotate (
$x, $y, $angle
):

Proxy method for rotating the transformation matrix on the canvas.

Parameters
$x

X-coordinate of rotation point

$y

Y-coordinate of rotation point

$angle

Angle to rotate in degrees

See

saveGraphicState()

Proxy method for saving the graphic state on the canvas.

See

scale()

public SetaPDF_Core_Canvas_StandardOperators::scale (
$scaleX, $scaleY
):

Proxy method for scaling the transformation matrix on the canvas.

Parameters
$scaleX

Scale factor on X

$scaleY

Scale factor on Y

See

setColor()

public SetaPDF_Core_Canvas_StandardOperators::setColor (
$color [, $stroking = true ]
):

Proxy method for setting the color on the canvas.

Parameters
$color
 
$stroking
 
See

setGraphicState()

Proxy method for setting a graphic state on the canvas.

Parameters
$graphicState : SetaPDF_Core_Resource_ExtGState
 
See

setNonStrokingColor()

Proxy method for setting the non-stroking color on the canvas.

Parameters
$color
 
See

setStrokingColor()

Proxy method for setting the stroking color on the canvas.

Parameters
$color
 
See

skew()

public SetaPDF_Core_Canvas_StandardOperators::skew (
$angleX, $angleY [, $x = 0 [, $y = 0 ]]
):

Proxy method for skewing the transformation matrix on the canvas.

Parameters
$angleX

Angle to x-axis in degrees

$angleY

Angle to y-axis in degrees

$x

Points to stretch on x-axis

$y

Point to stretch on y-axis

See

text()

Get the text helper.

translate()

public SetaPDF_Core_Canvas_StandardOperators::translate (
$shiftX, $shiftY
):

Proxy method for moving the transformation matrix on the canvas.

Parameters
$shiftX

Points to move on x-axis

$shiftY

Points to move on y-axis

See