Mike42\Escpos\EscposImage::__construct PHP Method

__construct() public method

Construct a new EscposImage.
public __construct ( string $filename = null, boolean $allowOptimisations = true )
$filename string Path to image filename, or null to create an empty image.
$allowOptimisations boolean True (default) to use any library-specific tricks to speed up rendering, false to force the image to be read in pixel-by-pixel, which is easier to unit test and more reproducible between systems, but slower.
    public function __construct($filename = null, $allowOptimisations = true)
    {
        $this->filename = $filename;
        $this->allowOptimisations = $allowOptimisations;
    }