Solved

ImagesSize in VB3

Posted on 1997-10-23
3
195 Views
Last Modified: 2008-03-06
I have been using Corel to make Images and saving them to JPG to about 15kb and when I copy and paste in VB and Make a exe file I can rack up drive space really quick. A 15km Copy and past makes a 225kb BMP file. So I would like to know, How do you make a program with graphics small.

Notes:
5 15km images at saved as a JPG are 72 km, Now the same file copyed into PaintBrush or saved in memory in Copy are1.13 MB or 1125 kb. That is a big diffrence. Any Help?
0
Comment
Question by:eli1
  • 2
3 Comments
 

Author Comment

by:eli1
Comment Utility
Edited text of question
0
 
LVL 3

Accepted Solution

by:
wolfcrag earned 120 total points
Comment Utility
There's not much help that I know, which is free. VB3 only supports BMP format, which has no compression, unless you use RLE compression, but then VB just uncompresses it anyway before putting it in the executable.

What you could do is use a third party tool like ImageKnife, or any of the tools at www.jpg.com, which can read jpg images. The other thing you would have to do is use a resource compiler to store the jpg images as data inside your executable. You probably have a resource compiler if you have the professional version of VB3.

These are not cheap solutions. A free DLL which you might use can be found at:

http://einstein.ae.eng.ua.edu/nishita/Download.htm

This one reads jpg, gif, pcx and other formats. To repeat myself there are two steps tp solve your problem:

1) Get a tool that reads jpg files.
2) Use a resource compiler to embed jpg files in an executable.

Point 2) also requires knowing how to read resource data from an executable, and get it into a format acceptable to your image reading tool.  
0
 

Author Comment

by:eli1
Comment Utility
Can you E-mail me eli1@mail.clark.net and give me ladder help?
its ok if you decline.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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

11 Experts available now in Live!

Get 1:1 Help Now