如何在plantuml序列图中嵌入局部图像?

发布于 2025-02-08 11:31:53 字数 102 浏览 1 评论 0原文

是否可以在plantuml序列图中嵌入本地机器的图像(除精灵除外)。试图将序列代码插入';'之后的plantuml克里奥尔语中在':'之前,但是出现了语法错误。有没有办法将图像插入序列图中。

Is it possible to embed images (other than sprites) from local machine in a PlantUML sequence diagram. Tried to insert a sequence code within the PlantUML Creole after ';' and before ':',but got syntax error. Is there a way to insert images into the sequence diagram.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅沫记忆 2025-02-15 11:31:53

它应该起作用。我不在Ubuntu上,但是如果我在Windows中使用VSCODE PLATTAML插件,并创建一个文件test.puml

@startuml test

participant "<img:blah.png{scale=0.5}>" as blah
blah -> A : Hello

@enduml

并且我将其保存在与blah.png的同一目录中我按预期获得结果:

”在此处输入图像说明”

It should work. I'm not on Ubuntu, but if I use the VSCode PlantUML plug-in in Windows, and create a file test.puml:

@startuml test

participant "<img:blah.png{scale=0.5}>" as blah
blah -> A : Hello

@enduml

and I save it in the same directory as blah.png I get a result as expected:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文