It seems JPEG, GIF, PNG, ICO, BMP are supported in the same way. Hard to find anything related to SVG though...

-- Daniel Amyot - 13 Feb 2005

Currently this doesn't save the connection edit parts. Further research is needed to understand the mechanism that is used to display the edit parts in the editor.

I've tried this on the Network Editor? and I can get a jpeg that contains the nodes.

Code for saving an image from a Draw 2 D? figure

try {
   IFigure f = getFigure(); //The content EditPart's getFigure() method
   Image image = new Image(Display.getCurrent(), f.getSize().width, f.getSize().height);
   GC gc = new GC(image);
   SWTGraphics graphics = new SWTGraphics(gc);

   FileOutputStream fos = new FileOutputStream("in.jpg"); //This will save the image directly on the c: drive
   ImageLoader loader = new ImageLoader(); = new ImageData[] { image.getImageData() };, SWT.IMAGE_JPEG); //Several image formats are supported, including bitmap
} catch(NullPointerException n) {
   System.out.println(n); //Probably not needed, but I was getting some errors before I got it working
} catch(IOException e) {

-- Jordan Mc Manus? - 04 Feb 2005

-- Daniel Amyot - 30 Jan 2005

When testing, must export a diagram with a very complex diagram and verify that everything appears.

Simply missing current and submaps but putting completed anyways. -- Jason Kealey - 10 Jun 2005

Form For Req edit

Req Name Req Export Bitmap
Description jUCMNav SHALL support the export of a selection of maps (current, current and submaps, all maps) to individual bitmap files.
Type Functional
Importance Mandatory
Priority Medium
Status Completed
Author Daniel Amyot
Verification Approach Manual
Test Cases
Topic revision: r9 - 14 Jul 2005 - 13:32:44 - Jason Kealey
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback