ram_sac
April 14th, 2003, 03:51 AM
I want to zoom a selected portion of an image. i.e after an image is loaded into a form or a picture box, the user chooses a particular region and then the image will be zoomed and the selected region will be in the initial focus
Approach: I tried out the followin approach.
I zoomed the entire image and move the horizontal and the vertical scrollbar to the start of the zoomed region.
The problem is: The selected region thats captured corresponds to the original bitmap, but when the image is zoomed the coordinates changes. So is there any way that i can find out the coordinates of the clicked part in the zoomed image.
Any other approach to this problem is also highly appreciated
Approach: I tried out the followin approach.
I zoomed the entire image and move the horizontal and the vertical scrollbar to the start of the zoomed region.
The problem is: The selected region thats captured corresponds to the original bitmap, but when the image is zoomed the coordinates changes. So is there any way that i can find out the coordinates of the clicked part in the zoomed image.
Any other approach to this problem is also highly appreciated