Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
document->getSurface();
$surface->save();
$this->applyTransform($attributes);
}
public function start($attributes)
{
$height = $this->document->getHeight();
$width = $this->document->getWidth();
$this->y = $height;
if (isset($attributes['x'])) {
$this->x = $this->convertSize($attributes['x'], $width);
}
if (isset($attributes['y'])) {
$this->y = $height - $this->convertSize($attributes['y'], $height);
}
if (isset($attributes['width'])) {
$this->width = $this->convertSize($attributes['width'], $width);
}
if (isset($attributes['height'])) {
$this->height = $this->convertSize($attributes['height'], $height);
}
if (isset($attributes['xlink:href'])) {
$this->href = $attributes['xlink:href'];
}
if (isset($attributes['href'])) {
$this->href = $attributes['href'];
}
$this->document->getSurface()->transform(1, 0, 0, -1, 0, $height);
$scheme = \strtolower(parse_url($this->href, PHP_URL_SCHEME) ?: "");
if (
$scheme === "phar" || \strtolower(\substr($this->href, 0, 7)) === "phar://"
|| ($this->document->allowExternalReferences === false && $scheme !== "data")
) {
return;
}
$this->document->getSurface()->drawImage($this->href, $this->x, $this->y, $this->width, $this->height);
}
protected function after()
{
$this->document->getSurface()->restore();
}
}