Solved

loading and scaling images

Posted on 1998-07-27
2
189 Views
Last Modified: 2013-11-22
Hi,
An image was scanned in with TWAIN compliant engine and saved. It was
later saved in several formats namely: .bmp, .rle, .tif. I am using
LOADPICTURE function. The file is .bmp,  1.1meg size.
The file can be printed with word, wordperfect... without a hitch, but on VB5 the result is to big
or to small. I can't control the scale.

What am I doing wrong??

Thanking you in advance

0
Comment
Question by:fdiaz15
2 Comments
 

Expert Comment

by:DaveD072798
ID: 1466880
How are you printing in VB5? Are you using the Printer object? If so, how about setting the picture property of an invisible Picture control and using the Printer.PaintPicture method. Using that and the Printer.Scalemode, I can usually do any kind of graphic needed.
0
 

Accepted Solution

by:
usermiles earned 100 total points
ID: 1466881
Change the file extension to a WMF file, this will automatically resize the picture to fit into any Picture Box regardless of the size,that you put on a form.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question