Grafika\Gd\Image::__construct PHP Method

__construct() public method

Image constructor.
public __construct ( resource $gd, string $imageFile, integer $width, integer $height, string $type, string $blocks = '', boolean $animated = false )
$gd resource Must use GD's imagecreate* family of functions to create a GD resource.
$imageFile string
$width integer
$height integer
$type string
$blocks string
$animated boolean
    public function __construct($gd, $imageFile, $width, $height, $type, $blocks = '', $animated = false)
    {
        $this->gd = $gd;
        $this->imageFile = $imageFile;
        $this->width = $width;
        $this->height = $height;
        $this->type = $type;
        $this->blocks = $blocks;
        $this->animated = $animated;
    }