protected $page;
protected $out;
protected $force = false;
+ protected $mobileRatio = 1;
+ protected $resolutionRatio = 1;
- public function __construct($out, $page, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
+ public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
{
$this->setOut($out);
$this->setPage($page);
$this->setForce(!!$force);
+ $this->setResolutionRatio($resolutionRatio);
+ $this->setMobileRatio($mobileRatio);
parent::__construct($format, $resolution, $withGraphics, $withTexts, $version);
}
+ /**
+ * @param float $mobileRatio
+ */
+ public function setMobileRatio(float $mobileRatio): void
+ {
+ $this->mobileRatio = $mobileRatio;
+ }
+
+ /**
+ * @param float $resolutionRatio
+ */
+ public function setResolutionRatio(float $resolutionRatio): void
+ {
+ $this->resolutionRatio = $resolutionRatio;
+ }
+
+ public function getMobileRatio(): float
+ {
+ return $this->mobileRatio;
+ }
+
+ public function getResolutionRatio(): float
+ {
+ return $this->resolutionRatio;
+ }
+
+
/**
* @return bool
*/
return $this->getPath($this->isForce());
}
-
}
\ No newline at end of file