使用 Doxygen 内联显示图像

Display image inline using Doxygen

我正在使用 Doxygen 从降价文件生成 html 用户手册。我想给出 "Click on the [image.png] button" 之类的说明,并让 png 图像出现在生成的 html.

中的文本行中

根据Doxygen的文档,可以按如下方式添加图片: \image['{'[option]'}'] <format> <file> ["caption"] [<sizeindication>=<size>]

文档还说 "Currently only the option inline is supported. In case the option inline is specified the image is placed " 在行中,当出现标题时,它在 HTML 中显示为工具提示(其他格式忽略)。 这听起来像我想做的。

我尝试了 \image 命令的几种变体,但都没有成功。这些成功地生成了图像,但在其自己的行中:

!["caption"](image.png)
\image html image.png "caption"

这些命令失败了:

\image inline html image.png "caption"
\image{inline} html image.png "caption"

有谁知道是否可以实现我想要实现的目标?我是不是语法错了?

1.8.15版本引入了{inline}选项和\image命令 版本:

\image{inline} html image.png "caption"

在 1.8.15 中有效。

OP 使用旧版本并且会收到如下警告:

warning: image type inline specified as the first argument of inline is not valid warning: expected whitespace after { command

我也遇到了这个问题。这条线为我修复了它:

 \image html name.png width=800cm height=600cm