简体   繁体   English

如何导出Visual Studio 2010 UML建模图

[英]How to export Visual Studio 2010 UML Modeling Diagrams

I recently created a very nice UML Class diagram inside Visual Studio 2010 (b2). 我最近在Visual Studio 2010(b2)中创建了一个非常好的UML类图。 The tools worked like a charm and I was able to model a rather complex domain within minutes. 这些工具就像一个魅力,我能够在几分钟内建立一个相当复杂的域。

However, I cannot find any way to export my diagram as an image (PNG/JPEG/etc.). 但是,我找不到任何方法将我的图表导出为图像(PNG / JPEG /等)。

Does the modelling features in VS2010 support exporting diagrams as images? VS2010中的建模功能是否支持将图表导出为图像? If so - how do I do it? 如果是这样 - 我该怎么办?

Print src is NOT the answer. 打印src不是答案。

Edit: Found one way to export... Go to File > Print and select Adobe PDF 编辑:找到一种导出方式...转到文件>打印并选择Adobe PDF

Edit 2: Found another, slightly more elegant, way to export. 编辑2:找到另一种,稍微优雅的出口方式。 In the diagram editor: Select all ( Ctrl + A ), Copy ( Ctrl + C ), Go to your favourite image editor (paint works fine) and Paste ( Ctrl + V ). 在图编辑器中:选择全部( Ctrl + A ),复制( Ctrl + C ),转到您喜欢的图像编辑器(绘画工作正常)和粘贴( Ctrl + V )。 Voila! 瞧!

VS 2010 Ultimate RC文档提供了有关将UML图导出为图像的更多信息: 如何:保存图的图像

We now have a topic in the documention about how to do this programmatically: 我们现在在文档中有一个关于如何以编程方式执行此操作的主题:

How to: Export UML Diagrams to Image Files 如何:将UML图导出到图像文件

See also Cameron Skinner's blog post Save a diagram to Image File 另请参阅Cameron Skinner的博客文章将图表保存到图像文件

This describes how to create a context menu option in VS which will allow you to export the diagram as an image. 这描述了如何在VS中创建上下文菜单选项,以允许您将图表导出为图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM