A very handy application that's included with the Windows operating system is the magnifier, which zooms in on a portion of the desktop. In this article Jason shows us how to create a cool zoomable magnifier using Visual Basic 6 and the Windows API.
Magnifying The Desktop With Visual Basic - The magnifier in action (Page 5 of 6 )
Run our magnifier application by pressing play in the Visual Basic IDE. Here are some screen shots that I took while running it:
A zoomed out version of the devArticles web site:
A 50% zoom of the devArticles web site:
A 100% zoom of the devArticles web site:
As you can see from the screen shots shown above, our magnifying app does a great job of zooming in and out of a portion of the screen. By simply dragging the vertical scroll bar up and down, the zoom of our magnifier app changes dynamically... it's really quite amazing!
Just one note before you continue on to the conclusion page. If you're running an older computer (such as a 486 or Pentium II), try changing the interval of the timer to 75 or 100. This will cause the screen grabbing and magnifying to occur on at a greater interval, which should speed up the bit blitting process.