在 Dia 中导入位图
我有一个列出一些工作流程的 .png 文件,我需要使用 Dia 对其进行编辑并添加新的工作流程。是否可以选择导入 .png 文件并使其在 dia 中可编辑?如果没有任何其他选项适合我,以便我可以编辑文件
I am having a .png file listing some workflows and I need to edit it and add new workflows to it using Dia. Is there an option to import .png file and make it editable in dia ? If not any other option for me so that I can edit the file
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有两种选择:
a) 将 PNG 作为图像添加到 Dia 图表中 - 请参阅
http://dia-installer.de/doc/en/basic-objects-chapter.html#image
完成此操作后,您可以“绘制”图像。在不需要的部分上放置一个白色矩形。 Dia 允许您更改对象的顺序(您希望将图像放置在背景中)。 Dia 还支持“图层”来组织您的对象。您可以将图像添加到背景图层以确保其保留在背景中。这是快速而肮脏的方法。
b) 将 PNG 转换为矢量图形 (SVG) 并将其导入 Dia。 Dia 不支持此转换,但您可以使用 Inkscape 来执行此操作。这种方法更加复杂,需要适合转换的高质量 PNG。
http://inkscape.org/
You have two choices:
a) Add your PNG as a an image to your Dia diagram - see
http://dia-installer.de/doc/en/basic-objects-chapter.html#image
Once you've done that, you can "draw over" the image. Place a white rectangle over parts that you don't need. Dia allows you to change the order of the object (you want to place the image in the background). Dia also supports "Layers" to organize your objects. You could add your image to a background layer to ensure that it stays in the background. This is the quick and dirty approach.
b) Convert your PNG into a vector graphic (SVG) and import that into Dia. Dia does not support this conversion, but you could use Inkscape to do that. This approach is more sophisticated and will require a good quality PNG that is suited for conversion.
http://inkscape.org/