Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » zoom and color of SVG Images in GEF
zoom and color of SVG Images in GEF [message #788255] Wed, 01 February 2012 15:10
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
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.
Previous Topic:Relation between figure bounds and display pixels
Next Topic:GEF Displaying rulers
Goto Forum:

Current Time: Tue Oct 19 13:10:29 GMT 2021

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

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

Back to the top