@@ 1597-1599 (lines=3) @@ | ||
1594 | $imageHeight = 72. / 96. * $imageInfos[1] / $this->pdf->getK(); |
|
1595 | ||
1596 | // prepare the position of the backgroung |
|
1597 | if ($iRepeat[0]) $iPosition[0] = $bX; |
|
1598 | else if (preg_match('/^([-]?[0-9\.]+)%/isU', $iPosition[0], $match)) $iPosition[0] = $bX + $match[1] * ($bW - $imageWidth) / 100; |
|
1599 | else $iPosition[0] = $bX + $iPosition[0]; |
|
1600 | ||
1601 | if ($iRepeat[1]) $iPosition[1] = $bY; |
|
1602 | else if (preg_match('/^([-]?[0-9\.]+)%/isU', $iPosition[1], $match)) $iPosition[1] = $bY + $match[1] * ($bH - $imageHeight) / 100; |
|
@@ 1601-1603 (lines=3) @@ | ||
1598 | else if (preg_match('/^([-]?[0-9\.]+)%/isU', $iPosition[0], $match)) $iPosition[0] = $bX + $match[1] * ($bW - $imageWidth) / 100; |
|
1599 | else $iPosition[0] = $bX + $iPosition[0]; |
|
1600 | ||
1601 | if ($iRepeat[1]) $iPosition[1] = $bY; |
|
1602 | else if (preg_match('/^([-]?[0-9\.]+)%/isU', $iPosition[1], $match)) $iPosition[1] = $bY + $match[1] * ($bH - $imageHeight) / 100; |
|
1603 | else $iPosition[1] = $bY + $iPosition[1]; |
|
1604 | ||
1605 | $imageXmin = $bX; |
|
1606 | $imageXmax = $bX + $bW; |