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. Design question - suggestions?

Design question - suggestions?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestiondesignadobeannouncement
4 Posts 3 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.
  • M Offline
    M Offline
    moliate
    wrote on last edited by
    #1

    As part of an application I want to display a map (physical map, like a map of France or a building). What I need:

    1. Easy update - the original is probably a papercopy.
    2. Normal operations like zooming, panning, color adjustments.
    3. "Hot regions" - clicking on a area will highlight it and provide additional data.
    4. Portable to WinCE/Pocket PC

    The ideas I have gone through:

    1. Two bitmaps, one for the map and one for the regions.
    2. Bitmap for the map, regions stored as some kind of polygons.
    3. Metafiles. Don't know much about them, especially not how they are handled by WinCE GDI.
    4. Using the WebBrowser control: map as jpeg of gif and regions using <MAP> or ISMAP. Hard to control, I think.
    5. Other format for map and regions.

    Any suggestions here would be greatly appreciated. At the moment I think I will go with option 2. - unless someone points out a serious flaw or suggests a better solution. Thanks in advance /moliate


    Two o'clock and walking through familiar London - Or what was familiar London before the cursor deleted certain certainties - I watch a suit and tie man giving suck to the Psion Organizer lodged in his breast pocket its serial interface like a cool mouth hunting his chest for sustenance, familiar feeling, and I'm watching my breath steam in the air.

    Neil Gaiman - Cold Colours

    J P 2 Replies Last reply
    0
    • M moliate

      As part of an application I want to display a map (physical map, like a map of France or a building). What I need:

      1. Easy update - the original is probably a papercopy.
      2. Normal operations like zooming, panning, color adjustments.
      3. "Hot regions" - clicking on a area will highlight it and provide additional data.
      4. Portable to WinCE/Pocket PC

      The ideas I have gone through:

      1. Two bitmaps, one for the map and one for the regions.
      2. Bitmap for the map, regions stored as some kind of polygons.
      3. Metafiles. Don't know much about them, especially not how they are handled by WinCE GDI.
      4. Using the WebBrowser control: map as jpeg of gif and regions using <MAP> or ISMAP. Hard to control, I think.
      5. Other format for map and regions.

      Any suggestions here would be greatly appreciated. At the moment I think I will go with option 2. - unless someone points out a serious flaw or suggests a better solution. Thanks in advance /moliate


      Two o'clock and walking through familiar London - Or what was familiar London before the cursor deleted certain certainties - I watch a suit and tie man giving suck to the Psion Organizer lodged in his breast pocket its serial interface like a cool mouth hunting his chest for sustenance, familiar feeling, and I'm watching my breath steam in the air.

      Neil Gaiman - Cold Colours

      J Offline
      J Offline
      Jay Beckert
      wrote on last edited by
      #2

      I'd use one full sized image that is blown up to the desired detail you need. Scale it down to the size you need retaining the detail. Then use regions to define your hotspots, so as the user clicks or hovers over these regions scale up the part of the image the region contains. Display it to the user and show the information you want. I know with GDI+ this is a breeze to do, I use it all the time but I'm not positive of the top of my head that GDI+ is even part of the WinCE api. If not, then it should be fairly easly done without it still using the method I mentioned above which I think is the better way to do. Hopefully I 'v helped you or given you another approach that helps you or I thoroughly confused you - I havn't had my morning coffee yet and my daughter dragged to her swim competition early in the morning.:~

      M 1 Reply Last reply
      0
      • J Jay Beckert

        I'd use one full sized image that is blown up to the desired detail you need. Scale it down to the size you need retaining the detail. Then use regions to define your hotspots, so as the user clicks or hovers over these regions scale up the part of the image the region contains. Display it to the user and show the information you want. I know with GDI+ this is a breeze to do, I use it all the time but I'm not positive of the top of my head that GDI+ is even part of the WinCE api. If not, then it should be fairly easly done without it still using the method I mentioned above which I think is the better way to do. Hopefully I 'v helped you or given you another approach that helps you or I thoroughly confused you - I havn't had my morning coffee yet and my daughter dragged to her swim competition early in the morning.:~

        M Offline
        M Offline
        moliate
        wrote on last edited by
        #3

        Yeah, that was basically my idea too (except that CE does only seem to be able to create rectangular regions). Shows that I'm on the right track.. Thanks for the reply - and good luck to your daughter! /moliate

        1 Reply Last reply
        0
        • M moliate

          As part of an application I want to display a map (physical map, like a map of France or a building). What I need:

          1. Easy update - the original is probably a papercopy.
          2. Normal operations like zooming, panning, color adjustments.
          3. "Hot regions" - clicking on a area will highlight it and provide additional data.
          4. Portable to WinCE/Pocket PC

          The ideas I have gone through:

          1. Two bitmaps, one for the map and one for the regions.
          2. Bitmap for the map, regions stored as some kind of polygons.
          3. Metafiles. Don't know much about them, especially not how they are handled by WinCE GDI.
          4. Using the WebBrowser control: map as jpeg of gif and regions using <MAP> or ISMAP. Hard to control, I think.
          5. Other format for map and regions.

          Any suggestions here would be greatly appreciated. At the moment I think I will go with option 2. - unless someone points out a serious flaw or suggests a better solution. Thanks in advance /moliate


          Two o'clock and walking through familiar London - Or what was familiar London before the cursor deleted certain certainties - I watch a suit and tie man giving suck to the Psion Organizer lodged in his breast pocket its serial interface like a cool mouth hunting his chest for sustenance, familiar feeling, and I'm watching my breath steam in the air.

          Neil Gaiman - Cold Colours

          P Offline
          P Offline
          Paul M Watt
          wrote on last edited by
          #4

          It may be a little bit of work to get a map in vector format, but unless you have a very large amount of disk space to work with I would steer away from Bitmaps. Depending on how big the bitmap that you are using needs to be when you are zoomed in all of the way, I would look more to meta files. Meta files are vector based so it does not matter how far you zoom in, the size of the file will not increase significantly.


          Build a man a fire, and he will be warm for a day
          Light a man on fire, and he will be warm for the rest of his life!

          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