Sign in to follow this  
Followers 0
ChuckS

Large image zoom

6 posts in this topic

I have a large map image 2000x2000 pixels. I would like to be able to zoom to certain spots to get a closer look at the image. I imagined picking a point in the image and zooming to that pixel location as the center point. Kinda like Mapquest when you zoom in on the address location.

I can in vision it in my mind but can not figure out how to code it.

Any advice?

Thanks

Share this post


Link to post
Share on other sites



That doesn't provide the function I need. I found a few examples for zooming under the mouse that will work for the zoom but how to zoom on a part of the image with having to mouse over it. The part of the GUI to is to show the zoomed image is a fraction of the size need for the entire image. I am trying not to have the whole image in the GUI because of its size and the fact that without zooming in you cant read the text that is apart of the image.

The rough walk though.

Small GUI, a button and a small area say 300x300 for the image.

When you click on the button a predetermined point on the large image say at pixel 600x900 is zoomed in on at 4x zoom and displayed in the small 300x300 area on the GUI.

Share this post


Link to post
Share on other sites

Still working on this but not finding any solution.

Share this post


Link to post
Share on other sites

Still working on this but not finding any solution.

Don't know if you found a solution yet. If not, check out the Zoom demo in Auto3Lib. It's located in the Auto3Lib GDI+ folder. I believe that it does what you are asking for.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

Don't know if you found a solution yet. If not, check out the Zoom demo in Auto3Lib. It's located in the Auto3Lib GDI+ folder. I believe that it does what you are asking for.

You nailed it. That is exactly what I was looking for.

Thanks!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0