
04-06-2002, 10:17 PM
|
|
|
Displaying large images
|
I've written an imaging application in VB 5.0 that displays an image in the window area of the program's main form. To do this, a device independent bitmap (DIB) of the image is created. An invisible picture box on the main form is made to be the same size as the full image. The DIB is then BitBlt into the picture box. A visible image control on the same form is made to be the same size as the window area of the form. The Stretch property on the image control is set to true. The contents of the picture box are copied into the image control. The user can then view the entire image in the window area of the form and resize the image any way they want by resizing the form.
This application works fine on images no bigger than 1K x 1K. However, I'm starting to work with 2K x 2K and 3K x 4K images and they're way too big to load into the picture box. I'm going to have to zoom out on the image so it's smaller, but I don't know how to do that. Any suggestions?
Thanks for the help,
Wendy
|
|