Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Get an image from a GMF/EMF diagram
Get an image from a GMF/EMF diagram [message #720610] Tue, 30 August 2011 23:25 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Hello

My customer asked me for generate an Image (png, gif) of the EMF/GMF diagram being edited.

Does anyone know if this is possible? and how is it done?

Thanks in advance.
Best Regards
Rui

[Updated on: Tue, 30 August 2011 23:25]

Report message to a moderator

Re: Get an image from a GMF/EMF diagram [message #720668 is a reply to message #720610] Wed, 31 August 2011 03:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Don't the generated editors have File->Save as Image File... for this?


On 30/08/2011 4:25 PM, rui.domingues wrote:
> Hello
>
> My customer ask me for generate an Image (png, gif) of the EMF/GMF
> diagram being edited.
>
> Does anyone know if this is possible? and how is it done?
>
> Thanks in advance.
> Best Regards Rui


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Get an image from a GMF/EMF diagram [message #720719 is a reply to message #720668] Wed, 31 August 2011 06:37 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
GMF offers Save As Image in the contex menu if you right click a diagram.
Re: Get an image from a GMF/EMF diagram [message #720980 is a reply to message #720719] Wed, 31 August 2011 15:57 Go to previous messageGo to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Thks.
I've already solved it.
Actually I needed to generate it programmatically, because, I needed to send it to a webservice.

Thanks anyway.
Re: Get an image from a GMF/EMF diagram [message #721623 is a reply to message #720980] Fri, 02 September 2011 10:50 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

could you provide the solution you have?

Ralph
Re: Get an image from a GMF/EMF diagram [message #931696 is a reply to message #720610] Wed, 03 October 2012 12:42 Go to previous messageGo to next message
Dan Tololoi is currently offline Dan TololoiFriend
Messages: 33
Registered: September 2012
Location: Iasi, Romania
Member

Hello all,

Can anybody point to the code for this image creation?
I can read that there is a valid solution.

Many thanks in advance!
Re: Get an image from a GMF/EMF diagram [message #934240 is a reply to message #931696] Fri, 05 October 2012 19:39 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

you can use OffscreenEditPartFactory.

regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:getAfterCreateCommand and new element
Next Topic:Show EObject in Diagram
Goto Forum:
  


Current Time: Fri Apr 26 22:17:21 GMT 2024

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

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

Back to the top