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. mouse position + map lon/lat C#

mouse position + map lon/lat C#

Scheduled Pinned Locked Moved C#
csharp
6 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
    mercenary01
    wrote on last edited by
    #1

    does C# have any function or method that I can call to get the lon and lat from some reference I have with regards to the pic and a mouse position. Hope the questions is clear... Thanks Samuel

    M C 2 Replies Last reply
    0
    • M mercenary01

      does C# have any function or method that I can call to get the lon and lat from some reference I have with regards to the pic and a mouse position. Hope the questions is clear... Thanks Samuel

      M Offline
      M Offline
      Martin 0
      wrote on last edited by
      #2

      mercenary01 wrote:

      lon and lat

      :confused:

      M 1 Reply Last reply
      0
      • M Martin 0

        mercenary01 wrote:

        lon and lat

        :confused:

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

        longitude and latitude

        1 Reply Last reply
        0
        • M mercenary01

          does C# have any function or method that I can call to get the lon and lat from some reference I have with regards to the pic and a mouse position. Hope the questions is clear... Thanks Samuel

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          No, how could it ? It would need to know the starting position and the scale of the image. Even then, not all map images will have steady change of lat/lng. You need to write your own code, based on what you know about the image you're displaying.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          M 1 Reply Last reply
          0
          • C Christian Graus

            No, how could it ? It would need to know the starting position and the scale of the image. Even then, not all map images will have steady change of lat/lng. You need to write your own code, based on what you know about the image you're displaying.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            M Offline
            M Offline
            mercenary01
            wrote on last edited by
            #5

            man...that is what I thought, its tough

            C 1 Reply Last reply
            0
            • M mercenary01

              man...that is what I thought, its tough

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Yeah, it's always nicer to find stuff is supported for you, but in this case, I don't see any way it could take a bitmap and give lat/lng, and it should be pretty easy to work out, just find out the co-ords for the corners of your bitmap and do the math to track the rate of change to the mouse.

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              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