Solved

loading and scaling images

Posted on 1998-07-27
2
186 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 43
How to produce a SHA-1 hash function in vb6 in order to save it to a table 8 36
Hide vba in gp 7 83
Dynamically Created Query 3 50
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

862 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

25 Experts available now in Live!

Get 1:1 Help Now