public function getImgResource($string, $size = '', $color = '', $bg = '')
    {
        return $this->setHashString($string)->setSize($size)->setColor($color)->setBgColor($bg)->genImage();
    }
public function getImgResource($string, $size = '', $color = '', $bg = '')
    {
        return $this->setHashString($string)->setSize($size)->setColor($color)->setBgColor($bg)->genImage();
    }
public function getImgResource ( $ string , $ size = '' , $ color = '' , $ bg = '' ) { return $ this -> setHashString ( $ string ) -> setSize ( $ size ) -> setColor ( $ color ) -> setBgColor ( $ bg ) -> genImage ( ) ; }
Get Image resource data.

@param $string string.
$size side of image.
$color foreground color of image.
$bg background color of image.

@since 3.0.0

@return resource
Get Image resource data .