Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2004, 03:30 AM
Authorized User
 
Join Date: Nov 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sizing large Images to display conveniently

Hi,

I have a rather large image (2400 x 1600 pixel) and I want to be able to size it conveniently in a form, maybe being able to zoom in and out. Is there a way of doing this in VB6 with an existing control, or must I buy a custom one ?

( The Image/Picture controls only display the left upper corner :( )

Mike
 
Old May 4th, 2004, 05:18 AM
Authorized User
 
Join Date: Aug 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

An Image control has a Stretch property.
If you set this to true than VB will size the image so it fits in the control.

(If your picture doesn't have the same aspect ratio as your image control your image will be deformed since it will always fill the entire control.)

Hope this help.

Tom.
 
Old May 7th, 2004, 03:29 AM
Authorized User
 
Join Date: Apr 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may use the StretchBlt APi if you need more speed.

webdesign-tvorba webu





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Viewing Large Images arimakidd BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 November 20th, 2006 03:27 PM
How display large amount of dynamic text relaytest49 ASP.NET 2.0 Professional 2 October 6th, 2006 02:19 PM
how to display images ? shirley65 C# 2 May 31st, 2004 08:12 AM
Datagrid for display images [email protected] ASP.NET 1.x and 2.0 Application Design 1 January 18th, 2004 03:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.