setasign\Fpdi

GraphicsState A simple graphic state class which holds the current transformation matrix.

File: /FPDI v2/GraphicsState.php

Class hierarchy

Summary

Properties

$ctm


Methods

__construct()

public GraphicsState::__construct (
[ Math\Matrix|null $ctm = null ]
)
Parameters
$ctm : Math\Matrix|null
 

add()

public GraphicsState::add (
Math\Matrix $matrix
): $this
Parameters
$matrix : Math\Matrix
 

rotate()

public GraphicsState::rotate (
int|float $x, int|float $y, int|float $angle
): $this
Parameters
$x : int|float
 
$y : int|float
 
$angle : int|float
 

scale()

public GraphicsState::scale (
int|float $scaleX, int|float $scaleY
): $this
Parameters
$scaleX : int|float
 
$scaleY : int|float
 

toUserSpace()

Parameters
$vector : Math\Vector
 

translate()

public GraphicsState::translate (
int|float $shiftX, int|float $shiftY
): $this
Parameters
$shiftX : int|float
 
$shiftY : int|float