Skip to main content



      Home
Home » Eclipse Projects » GEF » Saving editparts
Saving editparts [message #75488] Fri, 11 April 2003 06:31 Go to next message
Eclipse UserFriend
Hi,

in my contents editpart some child editparts are purely graphical, so I
would like to save them to disk as an one JPG-image. This image should be
identical with what I see in GEF,
so the background color of the image should be white and all the components
(editparts) should be in
their correct places. I tried to solve this by using ImageLoader.save, but I
found out that it only
supports saving of one image. So I guess what I need is some way to get my
contents editpart saved as an one
image. Is there any easy way to do this, and if not, then what is the hard
way?


- Sami
Re: Saving editparts [message #75623 is a reply to message #75488] Mon, 14 April 2003 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

image = new Image(...)
gc = new GC(image);
g = new SWTGraphics(gc);
figure.paint(g);

then save the image using SWT techniques. I don't know exactly what they
are.

"Sami Lakka" <sami.lakka@tut.fi> wrote in message
news:b7651v$lh4$1@rogue.oti.com...
> Hi,
>
> in my contents editpart some child editparts are purely graphical, so I
> would like to save them to disk as an one JPG-image. This image should be
> identical with what I see in GEF,
> so the background color of the image should be white and all the
components
> (editparts) should be in
> their correct places. I tried to solve this by using ImageLoader.save, but
I
> found out that it only
> supports saving of one image. So I guess what I need is some way to get my
> contents editpart saved as an one
> image. Is there any easy way to do this, and if not, then what is the hard
> way?
>
>
> - Sami
>
>
>
Re: Saving editparts [message #75640 is a reply to message #75623] Tue, 15 April 2003 01:01 Go to previous message
Eclipse UserFriend
Thank you.

- Sami

"Randy Hudson" <none@us.ibm.com> wrote in message
news:b7elbs$mpi$1@rogue.oti.com...
> image = new Image(...)
> gc = new GC(image);
> g = new SWTGraphics(gc);
> figure.paint(g);
>
> then save the image using SWT techniques. I don't know exactly what they
> are.
>
> "Sami Lakka" <sami.lakka@tut.fi> wrote in message
> news:b7651v$lh4$1@rogue.oti.com...
> > Hi,
> >
> > in my contents editpart some child editparts are purely graphical, so I
> > would like to save them to disk as an one JPG-image. This image should
be
> > identical with what I see in GEF,
> > so the background color of the image should be white and all the
> components
> > (editparts) should be in
> > their correct places. I tried to solve this by using ImageLoader.save,
but
> I
> > found out that it only
> > supports saving of one image. So I guess what I need is some way to get
my
> > contents editpart saved as an one
> > image. Is there any easy way to do this, and if not, then what is the
hard
> > way?
> >
> >
> > - Sami
> >
> >
> >
>
>
Previous Topic:Extending draw2d with transformations, anti-aliasing and alpha
Next Topic:[ANN] GEF 2.2 planning underway
Goto Forum:
  


Current Time: Wed Apr 30 15:30:09 EDT 2025

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

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

Back to the top