02-25-2010 08:17 AM
Hi,
I want to program a picture in a panel which has a map in the background and position coordinates from a GPS as a figure are updated into the map. Map file format can be e.x. bmp. NI example alphablend with x% transparency is something which I could develop further, but I wonder if there is faster way to do that without re-drawing the whole picture every time a position point figure is added to a map ? The same program has to communicate simultaneously with an instrument for quite intensive amount of measurement values.
Thanks for any advice.
/petri
Solved! Go to Solution.
02-25-2010 09:48 AM
If all you want to add to the picture is a set of coordinates, have you considered putting them into a string Text control whose background has been set to transparant?
JR
02-25-2010 10:35 AM
Sorry that I was unclear. I want to follow positions on the map for a moving vehicle. I can calculate the position from the GPS to correspond the pixel/point on the map. I want also maintain the positions, where vehicle has been, on the map. So, a little point like figure would be nice to present vehicles position now and before.
/petri
02-25-2010 10:51 AM
So possibly you could use a graph control with a transparent background on top of your picture. Then you add two cursors with possibly different colors to indicate your current and previous car location...
Wolfgang
02-26-2010 12:43 AM
When it comes to drawing lines, isn't the canvas control the best choice?
You can make the background transparent and draw lines to show vehicle's path.
But I'm not sure you can make the lines thick enough to be visible over a colorful background like a map.
03-26-2010 10:41 AM
Hi S. Eren BALCI,
Yes, canvas was the best solution. Thanks.
Regards,
Petri