public function getImageDataUri($string, $size = 64, $color = null, $backgroundColor = null)
    {
        return sprintf('data:%s;base64,%s', $this->generator->getMimeType(), base64_encode($this->getImageData($string, $size, $color, $backgroundColor)));
    }
public function getImageDataUri($string, $size = 64, $color = null, $backgroundColor = null)
    {
        return sprintf('data:%s;base64,%s', $this->generator->getMimeType(), base64_encode($this->getImageData($string, $size, $color, $backgroundColor)));
    }
public function getImageDataUri ( $ string , $ size = 64 , $ color = null , $ backgroundColor = null ) { return sprintf ( 'data:%s;base64,%s' , $ this -> generator -> getMimeType ( ) , base64_encode ( $ this -> getImageData ( $ string , $ size , $ color , $ backgroundColor ) ) ) ; }
Get an Identicon PNG image data as base 64 encoded.

@param string $string
@param int    $size
@param string $color
@param string $backgroundColor

@return string
Get an Identicon PNG image data as base 64 encoded .