public function displayImage($imageFormat = 'png')
    {
        $renderer = $this->getRenderer($imageFormat);
        $this->draw($renderer, $this->getIconBounds());
        $mimeType = $renderer->getMimeType();
        $data = $renderer->getData();
        header("Content-Type: $mimeType");
        echo $data;
    }
public function displayImage($imageFormat = 'png')
    {
        $renderer = $this->getRenderer($imageFormat);
        $this->draw($renderer, $this->getIconBounds());
        $mimeType = $renderer->getMimeType();
        $data = $renderer->getData();
        header("Content-Type: $mimeType");
        echo $data;
    }
public function displayImage ( $ imageFormat = 'png' ) { $ renderer = $ this -> getRenderer ( $ imageFormat ) ; $ this -> draw ( $ renderer , $ this -> getIconBounds ( ) ) ; $ mimeType = $ renderer -> getMimeType ( ) ; $ data = $ renderer -> getData ( ) ; header ( "Content-Type: $mimeType" ) ; echo $ data ; }
Renders the icon directly to the page output.

The method will set the 'Content-Type' HTTP header. You are recommended
to set an appropriate 'Cache-Control' header before calling this method
to ensure the icon is  cached client side.

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