public function show()
    {
        try {
            header(sprintf('Content-Type: %s', $this->getMimeType(), true));
            $this->save(null);
        } catch (\Exception $ex) {
            header(sprintf('Content-Type: text/html'), true);
            /* rethrow it */
            throw $ex;
        }
    }
public function show()
    {
        try {
            header(sprintf('Content-Type: %s', $this->getMimeType(), true));
            $this->save(null);
        } catch (\Exception $ex) {
            header(sprintf('Content-Type: text/html'), true);
            /* rethrow it */
            throw $ex;
        }
    }
public function show ( ) { try { header ( sprintf ( 'Content-Type: %s' , $ this -> getMimeType ( ) , true ) ) ; $ this -> save ( null ) ; } catch ( \ Exception $ ex ) { header ( sprintf ( 'Content-Type: text/html' ) , true ) ; /* rethrow it */ throw $ ex ; } }
Output raw canvas directly to the browser

<b>Note : </b>
The write header for every canvas Format will be send also
Output raw canvas directly to the browser