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 ?

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: 697
Registered: November 2009
Senior Member

take a look at createSVGFigure in this class

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: Tue Oct 06 03:58:22 GMT 2015

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

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