Grafika\Grafika::createBlankImage PHP 메소드

createBlankImage() 공개 정적인 메소드

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.
리턴 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);
        }
    }