Using SVG inside doxygen

2020-07-20 03:26发布

问题:

I am trying to add an SVG to my doxygen documentation.

First try was using \image blabla.svg. This kinda worked... but, the SVG contains another png reference, and the "internal" png was not showed. This works on Chrome, but even on Firefox this is not working.

Reading on, I see that I can use <embed> or <iframe> on tye markup. I am not sure if this is possible using doxygen.

How can I use an SVG inside my doxygen documentation?

回答1:

... another option...

\htmlonly
<div align='center'>
<embed src="blabla.svg" width="900px" height="600px" type="image/svg+xml"     pluginspage="http://www.adobe.com/svg/viewer/install/" />
</div>
\endhtmlonly 


回答2:

... one option, is to render the SVG to PNG and embbed it into doxygen "normally". This can be done using "convert" from imagemagick.

(ugly solution, waiting for a better one)



标签: svg doxygen