Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Displaying large images


Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2002, 10:17 PM
WBEARDSLEYAZ
Guest
 
Posts: n/a
Default 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
Reply With Quote
  #2  
Old 04-07-2002, 12:08 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,887
Default

If I understand what you want to do you can use the StretchBlt API for this.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->