Solved

loading and scaling images

Posted on 1998-07-27
2
185 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now