Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Rendering SVG image on FEG editor
Rendering SVG image on FEG editor [message #972076] Mon, 05 November 2012 10:38 Go to next message
chai maa is currently offline chai maaFriend
Messages: 8
Registered: February 2012
Junior Member
Hello Everyone,
I am trying to render SVG image on GEF editor. I am using this code.

		
RenderInfo renderInfo = RenderedImageFactory.createInfo(100, 100, false, false, new RGB(255, 255, 255), new RGB(0, 0, 0));
ScalableImageFigure svg = new  ScalableImageFigure(RenderedImageFactory.getInstance("/home/sdcard.svg ",renderInfo));


The image is not being rendered through this code. On further investigation I found out that the while fetching instance of SVGImage the instance of img is null. Why is this happening. Any inputs ?

Regards,
Chaitannya
Re: Rendering SVG image on FEG editor [message #973354 is a reply to message #972076] Tue, 06 November 2012 09:05 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

take a look at createSVGFigure in this class http://code.google.com/a/eclipselabs.org/p/melanie/source/browse/de.uni_mannheim.informatik.swt.mlm.visualization.service/src/de/uni_mannheim/informatik/swt/plm/visualization/service/VisualModelToFigureTransfomator.java

Ralph
Previous Topic:Tutorial on PIN in GMF toolong 3.0.0 in Juno
Next Topic:Making figures sensitive to attributes of semantic elements
Goto Forum:
  


Current Time: Thu Apr 25 00:10:37 GMT 2024

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

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

Back to the top