public function getData()
    {
        $imagick = new \Imagick();
        $imagick->newImage($this->width, $this->height, $this->backgroundColor->__toString());
        $imagick->setImageFormat('png');

        if (method_exists($imagick, 'setImageProperty')) {
            $imagick->setImageProperty('Software', 'Jdenticon');
        } else {
            $imagick->setImageAttribute('Software', 'Jdenticon');
        }
        
        $imagick->drawImage($this->draw);
        return $imagick->getImageBlob();
    }
public function getData()
    {
        $imagick = new \Imagick();
        $imagick->newImage($this->width, $this->height, $this->backgroundColor->__toString());
        $imagick->setImageFormat('png');

        if (method_exists($imagick, 'setImageProperty')) {
            $imagick->setImageProperty('Software', 'Jdenticon');
        } else {
            $imagick->setImageAttribute('Software', 'Jdenticon');
        }
        
        $imagick->drawImage($this->draw);
        return $imagick->getImageBlob();
    }
public function getData ( ) { $ imagick = new \ Imagick ( ) ; $ imagick -> newImage ( $ this -> width , $ this -> height , $ this -> backgroundColor -> __toString ( ) ) ; $ imagick -> setImageFormat ( 'png' ) ; if ( method_exists ( $ imagick , 'setImageProperty' ) ) { $ imagick -> setImageProperty ( 'Software' , 'Jdenticon' ) ; } else { $ imagick -> setImageAttribute ( 'Software' , 'Jdenticon' ) ; } $ imagick -> drawImage ( $ this -> draw ) ; return $ imagick -> getImageBlob ( ) ; }
Renders this image as a PNG data stream.

@return string
Renders this image as a PNG data stream .