[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

loading and scaling images

Posted on 1998-07-27
2
Medium Priority
?
194 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses

656 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