public static function getInstanceByCreate($width, $height)
    {
        $instance = new self();

        // set image dimensions
        $instance->width = (int)$width;
        $instance->height = (int)$height;

        $instance->createImage();

        return $instance;
    }
public static function getInstanceByCreate($width, $height)
    {
        $instance = new self();

        // set image dimensions
        $instance->width = (int)$width;
        $instance->height = (int)$height;

        $instance->createImage();

        return $instance;
    }
public static function getInstanceByCreate ( $ width , $ height ) { $ instance = new self ( ) ; // set image dimensions $ instance -> width = ( int ) $ width ; $ instance -> height = ( int ) $ height ; $ instance -> createImage ( ) ; return $ instance ; }
Creates a new image in memory.

@param int $width  Image width.
@param int $height Image height.

@return $this
Creates a new image in memory .