PMA\libraries\plugins\schema\pdf\Pdf::lineScale PHP Method

lineScale() public method

Draws a scaled line
See also: TCPDF::Line()
public lineScale ( float $x1, float $y1, float $x2, float $y2 ) : void
$x1 float The horizontal position of the starting point
$y1 float The vertical position of the starting point
$x2 float The horizontal position of the ending point
$y2 float The vertical position of the ending point
return void
    public function lineScale($x1, $y1, $x2, $y2)
    {
        $x1 = ($x1 - $this->_xMin) / $this->scale + $this->leftMargin;
        $y1 = ($y1 - $this->_yMin) / $this->scale + $this->topMargin;
        $x2 = ($x2 - $this->_xMin) / $this->scale + $this->leftMargin;
        $y2 = ($y2 - $this->_yMin) / $this->scale + $this->topMargin;
        $this->Line($x1, $y1, $x2, $y2);
    }