Image_GD::_create PHP Method

_create() protected method

Create an empty image with the given width and height.
protected _create ( integer $width, integer $height ) : resource
$width integer image width
$height integer image height
return resource
    protected function _create($width, $height)
    {
        // Create an empty image
        $image = imagecreatetruecolor($width, $height);
        $this->_set_interlacing($image);
        // Do not apply alpha blending
        imagealphablending($image, FALSE);
        // Save alpha levels
        imagesavealpha($image, TRUE);
        return $image;
    }