SVG rendering with GEF/GMF [message #548243] |
Wed, 21 July 2010 04:49  |
Eclipse User |
|
|
|
Hi,
I'm trying to use SVG images with GEF in an RCP app.
I was already using a dedicated plugin for image rendering, but only PNG and JPG.
I tried to adapt this plugin to be able to display SVG (as background images for a GEF graph).
I'm using a ScalableImageFigure for this background images, and regular imageFigure for the objects that will be drawn over these background images.
I did manage to get an "image" displayed, but it looks like a bunch of colored squares, and I don't understand why. The SVG images that I'm using are exported from DWG files using easy CAD to SVG converter, and it seems that there is transparency, don't know if that's important so I wanted to mention it.
As I can't find any example, any help would be appreciated (or even tutorials!)
Thanks
|
|
|
|
|
|
Re: SVG rendering with GEF/GMF [message #550683 is a reply to message #548243] |
Wed, 04 August 2010 03:09  |
Eclipse User |
|
|
|
Hi,
Effectively it seems that SVG image takes a lot of memory and in GMF, each element takes a new SVG image even if it is the same image to display. It will be useful to used a registry perhaps but I didn't find the time for now to explore this way.
Regards,
|
|
|
Powered by
FUDForum. Page generated in 0.03429 seconds