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#
  4. add labels to an image at different zoom levels

add labels to an image at different zoom levels

Scheduled Pinned Locked Moved C#
5 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.
  • V Offline
    V Offline
    vr999999999
    wrote on last edited by
    #1

    I want to add labels to an image at different zoom levels like the one on google maps please give me some ideas.

    P 1 Reply Last reply
    0
    • V vr999999999

      I want to add labels to an image at different zoom levels like the one on google maps please give me some ideas.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      WinForms? ASP.NET? WPF/Silverlight?

      *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

      "Mind bleach! Send me mind bleach!" - Nagy Vilmos

      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      V 1 Reply Last reply
      0
      • P Pete OHanlon

        WinForms? ASP.NET? WPF/Silverlight?

        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        V Offline
        V Offline
        vr999999999
        wrote on last edited by
        #3

        right now I am using winForms. but i can switch if u suggest any other.....

        P 1 Reply Last reply
        0
        • V vr999999999

          right now I am using winForms. but i can switch if u suggest any other.....

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          When the image zooms, simply use DrawText to paint the text directly onto the image (do this as part of the OnPaint cycle so that it refreshes when a repaint is requested). If you need a rectangle to surround it, measure the text first, then draw the rectangle slightly inflated, and finally draw the text in that rectangle.

          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          V 1 Reply Last reply
          0
          • P Pete OHanlon

            When the image zooms, simply use DrawText to paint the text directly onto the image (do this as part of the OnPaint cycle so that it refreshes when a repaint is requested). If you need a rectangle to surround it, measure the text first, then draw the rectangle slightly inflated, and finally draw the text in that rectangle.

            *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            V Offline
            V Offline
            vr999999999
            wrote on last edited by
            #5

            thanks for the suggestion i will try it...

            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