add labels to an image at different zoom levels
-
I want to add labels to an image at different zoom levels like the one on google maps please give me some ideas.
-
I want to add labels to an image at different zoom levels like the one on google maps please give me some ideas.
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
-
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
right now I am using winForms. but i can switch if u suggest any other.....
-
right now I am using winForms. but i can switch if u suggest any other.....
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
-
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
thanks for the suggestion i will try it...