/** * Construct the object taking the image to provide information for as * argument. * * @param string $filename */ public function __construct($filename) { parent::__construct($filename); $this->resource = $this->loadImage($filename); }
public function __construct($filename, $resolution) { parent::__construct($filename); $this->resource = imagecreatefrompng($filename); $this->resolution = $resolution; }