Grafika\Grafika::createBlankImage PHP Method

createBlankImage() public static method

Create a blank image.
public static createBlankImage ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface
$width integer Width of image in pixels.
$height integer Height of image in pixels.
return grafika\ImageInterface
    public static function createBlankImage($width = 1, $height = 1)
    {
        $editorName = self::detectAvailableEditor();
        if ('Imagick' === $editorName) {
            return ImagickImage::createBlank($width, $height);
        } else {
            return GdImage::createBlank($width, $height);
        }
    }