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. |