02-08-2012 04:05 PM
Hello,
I have created one application showing my university map. I converted the pdf into image and then uploaded the image using bitmap source.
Now I want to fix a point in the map image to calculate the distance for the destination address.
(say at the entrace am fixing the point and want to reach the office.I need to get the distance for that).
Can anyone help me to know how to fix a point in the map image.???
Thanks.
02-08-2012 04:14 PM
I imagine that you would obtain the Graphics context in the paint() method of the control containing the bitmap, then draw over the bitmap.
Having said that, I'm not so sure you are going to be able to calculate the distance between two points, unless it is using a straight line (walking through walls, etc). Even then, you'll have to figure out how to scale pixels vs. meters (or whatever linear measurement you are using).
Are you sure that using a bitmap is the right way to go here?
02-08-2012 04:32 PM