save as image [message #216076] |
Sat, 13 May 2006 01:46 |
Eclipse User |
|
|
|
Originally posted by: caxqueiroz.gmail.com
Anyone knows how to save a gef diagram as an image, like, jpeg, gif??
thx,
cax
|
|
|
|
|
Re: save as image [message #216116 is a reply to message #216084] |
Mon, 15 May 2006 13:34 |
Eclipse User |
|
|
|
Originally posted by: caxqueiroz.gmail.com
Marcel wrote:
> This has been answered before. Search this forum for "ImageSaveUtil" and you will find a useful function to save an image.
>
> The function requires two parameters.
> Here is an example how to call this function:
>
> //get the active editor
> IEditorPart editor = (IEditorPart) PlatformUI.getWorkbench()
> .getActiveWorkbenchWindow().getActivePage().getActiveEditor( );
>
> ImageSaveUtil.save(editor, ((YourEditor)editor).getviewer());
> //call function with the active editor
>
> I hope this helps you !
>
> Good Luck !
thx, works ;)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02669 seconds