Solved

loading and scaling images

Posted on 1998-07-27
2
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 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