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 ?