在doxygen内部使用SVG [英] Using SVG inside doxygen

查看:94
本文介绍了在doxygen内部使用SVG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将SVG添加到我的doxygen文档中.

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

第一次尝试使用\image blabla.svg.这有点奏效...但是,SVG包含另一个png引用,并且未显示内部" png.在Chrome上可以使用,但即使在Firefox上也无法使用.

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.

继续阅读,我发现我可以在tye标记上使用<embed><iframe>.我不确定是否可以使用脱氧剂.

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

如何在doxygen文档中使用SVG?

How can I use an SVG inside my doxygen documentation?

推荐答案

......一种选择是将SVG渲染为PNG,然后正常"将其嵌入到doxygen中.这可以通过使用imagemagick的转换"来完成.

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

这篇关于在doxygen内部使用SVG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆