Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumssave as image
https://www.eclipse.org/forums/index.php/mv/msg/68938/216076/#msg_216076
Originally posted by: caxqueiroz.gmail.com
Anyone knows how to save a gef diagram as an image, like, jpeg, gif??
thx,
cax]]>2006-05-13T01:46:24-00:00Re: save as image
https://www.eclipse.org/forums/index.php/mv/msg/68938/216084/#msg_216084
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 !]]>Marcel Austenfeld2006-05-14T09:04:52-00:00Re: save as image
https://www.eclipse.org/forums/index.php/mv/msg/68938/216093/#msg_216093
be useful for both programmers and users. Please have a look at
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 !
>]]>Thomas Maier2006-05-14T21:19:59-00:00Re: save as image
https://www.eclipse.org/forums/index.php/mv/msg/68938/216116/#msg_216116
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 ;)]]>2006-05-15T13:34:53-00:00Re: save as image
https://www.eclipse.org/forums/index.php/mv/msg/68938/216312/#msg_216312
Marcel Austenfeld2006-05-17T06:38:26-00:00