Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plug-in: ObjectAid UML Explorer Class Diagram: export in higher resolution

I am using ObjectAid UML Explorer to generate a UML Class Diagram from my code.

I need to include the output PNG in a LaTeX document and what I get is way too low resolution for inclusion.

How can I get higher resolution output from the Eclipse plug-in?

I can see the internal format of a .ucls file is just XML:

<class-diagram version="1.0.10"...

Is there a way to get something more dense than 72dpi or something in a scalable format, say EPS or similar? The target document is > 300dpi so 72dpi does not even come close, unfortunately. Whatever rasterises the XML definition has to accept a trap and a pluggable module?

I need something that plugs into the auto-save mechanism of ObjectAid...

like image 323
Robottinosino Avatar asked Sep 12 '12 09:09

Robottinosino


1 Answers

I've found a dirty but easy solution to the problem.

By printing the diagram to a PDF, e.g. with programs like PDFCreator, you gain a vector graphic in the PDF. With a graphics editing program like Adobe Photoshop or Gimp you can raster the PDF to a high quality PNG.

It worked fine for me.

With ObjectAid's Diagram Add-On you can make some customizations regarding the printing scale. There's also the possibility to save the diagrams as SVG image, which you can convert to a high quality pixel image, too.

like image 74
Adrian Lange Avatar answered Oct 21 '22 13:10

Adrian Lange