Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SVG window

SVG window

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++xmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neilsolent
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • N neilsolent

      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

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      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![^]

      N 1 Reply Last reply
      0
      • G Gary R Wheeler

        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![^]

        N Offline
        N Offline
        neilsolent
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups