public function getImageData($imageFormat = 'png')
    {
        $renderer = $this->getRenderer($imageFormat);
        $this->draw($renderer, $this->getIconBounds());
        return $renderer->getData();
    }
public function getImageData($imageFormat = 'png')
    {
        $renderer = $this->getRenderer($imageFormat);
        $this->draw($renderer, $this->getIconBounds());
        return $renderer->getData();
    }
public function getImageData ( $ imageFormat = 'png' ) { $ renderer = $ this -> getRenderer ( $ imageFormat ) ; $ this -> draw ( $ renderer , $ this -> getIconBounds ( ) ) ; return $ renderer -> getData ( ) ; }
Renders the icon to a binary string.

@param string $imageFormat The image format of the output string.
Supported values are 'png' and 'svg'.
@return string
Renders the icon to a binary string .