|zoom and color of SVG Images in GEF [message #788255]
||Wed, 01 February 2012 15:10
| Matthias F
Registered: June 2011
Hi, I'm currently struggling with replacing some of my figures with SVG Images.|
I can show them using the SVGFigure of GMF.
The user should be able to change the color of the images, however I coulnd't figure out any way on how to set the color of the SVGFigure.
So I tried using the ScalableImageFigure. I can set the color there (by simply setting the foregroundcolor) but using the ScalableImageFigure is kind of a mess because I have to manually implement some GMF things (e.g. MapMode), otherwise the image won't show.
Is there any other easier way to show and color a svg image? For example: if setting the foregoundcolor of the SVGFigure would do it, it would be perfect.
Another thing I can't get to work is a rerendering of the SVG image the the gef editor is zoomed. The images are just scaled. Is it possible to make the figures listen to the zoom level and repaint them?
Thanks for any advise.
Powered by FUDForum
. Page generated in 0.01679 seconds