Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » saving figure into file
saving figure into file [message #238404] Mon, 10 September 2007 05:21
Eclipse UserFriend
Originally posted by:

Hi all,
I need to save my draw2d figure into a file.
I was able to save it but my requirement is a bit restricted. I don't need to open the shell. I want draw2d to draw figures and save into file in backgroud.

I am using the below code to save contents figure:
Image img1 = new Image(null, new, 102, 600, 600));
GC gc1 = new GC(img1);

Graphics grap1 = new SWTGraphics(gc1);
ImageLoader loader1 = new ImageLoader(); = new ImageData[] {img1.getImageData()};"c:/draw2d.jpeg", SWT.IMAGE_JPEG);

Previous Topic:How to get Graphics object in Draw2d?
Next Topic:Focus rectangle is not drawn in 3.3
Goto Forum:

Current Time: Sun Apr 22 22:09:49 GMT 2018

Powered by FUDForum. Page generated in 0.01989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software