Zoomable image overlaid with drawing possible?
-
I hope there are still some VB6 people out there to help me. I am quite new to VB and so perhaps my problem won't prove to be too hard... Anyway, I have already loaded images (.jpgs) into an Image control which is nested inside a PictureBox. The PictureBox along with a couple of scrollbars is acting as a window into the Image. The Image control has Stretch=True so that whatever size I make the control the loaded image will fit that size for me, ie. I can also zoom. Now, what I want to do is using the image as a background, allow the user to draw simple graphics in the foreground. I prototyped the drawing separately in a PictureBox but then I found all the draw methods are not available in an Image control! The image & drawing does work together in a PictureBox instead, but then there is no Stretch equivalent, so zooming is not possible. I also thought of using both an Image control for the background (with Stretch=True) and a PictureBox for the drawing, with its background set to invisible (to overlay the two nested controls). But the background does not allow this. So, now I have run out of ideas!! Please help... Bodie