SVG window
-
Hi One for the hardcore coders .. I would like to display a window in a VC++ app that is a web view, in that the source for the view is a .SVG file (the Web XML vector graphics format). BUT .. I need to be able to interact with the view from the C++ code - I need to modify the colour of certain parts of the picture (tagged appropriately in the SVG file). The colours may change dynamically, depending on other parts of the program. Anyone done anything like this ? :~
cheers, Neil
-
Hi One for the hardcore coders .. I would like to display a window in a VC++ app that is a web view, in that the source for the view is a .SVG file (the Web XML vector graphics format). BUT .. I need to be able to interact with the view from the C++ code - I need to modify the colour of certain parts of the picture (tagged appropriately in the SVG file). The colours may change dynamically, depending on other parts of the program. Anyone done anything like this ? :~
cheers, Neil
I've been dealing with SVGZ files (the compressed version of SVG) for the last couple of weeks. From what I've seen, there's very little in the way of libraries that support displaying SVG or SVGZ data directly in a window. Adobe has a thing called Adobe SVG Viewer that might be of some help to you. Be warned, however. They have discontinued support for it. It appears that most people's interest is in adding support for SVG to various web browsers. It's indirect, but you might investigate hosting the browser in a window, which then hosts the SVG. My interest was quite limited (I have some static SVG's I need to display), so I ended up using Adobe Illustrator to convert the SVGZ files to enhanced metafiles and displaying those. I don't know how difficult it is, but that might be another option for you. Here's[^] an article in the MSDN on metafiles to get you started.
Software Zen:
delete this;
Fold With Us![^] -
I've been dealing with SVGZ files (the compressed version of SVG) for the last couple of weeks. From what I've seen, there's very little in the way of libraries that support displaying SVG or SVGZ data directly in a window. Adobe has a thing called Adobe SVG Viewer that might be of some help to you. Be warned, however. They have discontinued support for it. It appears that most people's interest is in adding support for SVG to various web browsers. It's indirect, but you might investigate hosting the browser in a window, which then hosts the SVG. My interest was quite limited (I have some static SVG's I need to display), so I ended up using Adobe Illustrator to convert the SVGZ files to enhanced metafiles and displaying those. I don't know how difficult it is, but that might be another option for you. Here's[^] an article in the MSDN on metafiles to get you started.
Software Zen:
delete this;
Fold With Us![^]Thanks for that. I am going to try the ActiveX adobe.svgctl for the moment, and see if I can figure out how to do the necessary directly from VC++. I'll post again if I get it working! cheers, Neil