Solved

ImagesSize in VB3

Posted on 1997-10-23
3
198 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
ID: 1438573
Edited text of question
0
 
LVL 3

Accepted Solution

by:
wolfcrag earned 120 total points
ID: 1438574
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
ID: 1438575
Can you E-mail me eli1@mail.clark.net and give me ladder help?
its ok if you decline.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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 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…

770 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