Saving editparts [message #75488] |
Fri, 11 April 2003 06:31  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.29349 seconds