开发者

Using SVG inside doxygen

开发者 https://www.devze.com 2023-03-22 09:30 出处:网络
I am trying to add an SVG to my doxygen documentation. First try was using \\image bla开发者_高级运维bla.svg.This kinda worked... but, the SVG contains anotherpng reference, and the \"internal\" png

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

First try was using \image bla开发者_高级运维bla.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?


... 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 


... 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号