Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Convert a diagram file into an Image file.(DiagramEditor file)
Convert a diagram file into an Image file. [message #1292912] Sat, 12 April 2014 06:06 Go to next message
steve dobbs is currently offline steve dobbsFriend
Messages: 15
Registered: March 2014
Junior Member
I Just want to find out if there is a way I can write a class that will convert a diagram file into an image file.I should be able to supply the diagram file and the image file should automatically get saved.

[Updated on: Sat, 12 April 2014 07:14]

Report message to a moderator

Re: Convert a diagram file into an Image file. [message #1297024 is a reply to message #1292912] Tue, 15 April 2014 11:15 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Steve,

did you have a look at the ISaveImageFeature ? It's default implementation
is used in the editor to save a diagram as image.

Michael
Re: Convert a diagram file into an Image file. [message #1297127 is a reply to message #1297024] Tue, 15 April 2014 12:44 Go to previous messageGo to next message
steve dobbs is currently offline steve dobbsFriend
Messages: 15
Registered: March 2014
Junior Member
Michael,
But I want to save the diagram as an image file without the editor being open.Without running the Graphiti project I should be able to run the seperate class which will convert the .diagram file into an image file.
Re: Convert a diagram file into an Image file. [message #1300350 is a reply to message #1297127] Thu, 17 April 2014 14:09 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
The current implementation of the save as image functionality is based upon
having a Draw2D Graphics containing the diagram. The current way to get that
is an editor (or a view), besides that it wil be dificult to get.

Michael
Previous Topic:ILook and GridLayer question
Next Topic:Hover effect in Graphiti source code
Goto Forum:
  


Current Time: Thu Apr 25 11:07:07 GMT 2024

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

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

Back to the top