VB5: Need Ultra Fast Image Loading code

I've got a massive project on hand with a few major problems.  I'm doing some extensive animations within the project with raw images as well as moving the image around the screen itself.  The catch is, I'm NOT using avi's or any type of animation file.  AVI's ruin the quality of the image and/or can't be displayed without skipping horribly.  My program is at 800x600x24-bit.  I first tried using loadpicture to load up images off the hard drive into a picture box to animate it.  This proved to be an extremely slow method that didn't work well.  Next I tried putting all my images into an image list.  This didn't work either because it flat out wouldn't allow it...ran out of memory it said.  So then I went and made 24 seperate image boxes and loaded each frame of the animation into it's corisponding image box.  This worked well.  On my P2 400, it animates very smoothly at 800x600...something that can't be done with avi's as of yet.  But here's the big problem.  I need it to run on systems a little less powerfull then mine too, and animate smoothly.  Plus, it flat out refuses to compile the program, stating it's out of memory. (I've got 256mb of ram btw...love to know where it went).  So in a nutshell the idea here is to have very sharp images loaded very quickly from the hard disk to animate smoothly.  But unless there's some serious API code to load it quicker and draw it quicker then a standard image box, I don't know what I can do.  My only other option would be to make it an avi that's 320x200 and stretch it (which would make it look terrible) to fit 800x600.  However if there was some routine that can make it animate with black lines as every other pixel row to stretch it to full screen, this would look a little better then pixel doubling/tripling.  I'm out of solid ideas for it....but my first hope is a fast api to load and display large images very very quickly....and I'll raise the point value based on if someone comes up with a good solution.
Who is Participating?
mcriderConnect With a Mentor Commented:
To get a free MPEG Creator, goto


Its shareware, but it does build MPEG files, and it is worth a try... I have a registered copy of their product and it works really well.


I would try making an MPEG out of your animation and play it that way... You'll need to use the Microsoft ActiveMovie control and you'll need software to create the MPEG, but The MPEG format is much better at screen painting...

AVI repaints the entire frame, where MPEG only paints the areas that change.  It's really worth a try!


Need to search Experts Exchange?
Goto http://www.caas.com/html/downloads.shtml 

ChrisKAuthor Commented:
Thanks for the suggestion, but I don't have any mpeg encryption software that works.  I have Premiere, but it won't encode an mpeg.  So I need a different solution...
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Speaking of mpeg:

ChrisKAuthor Commented:
lol...not exactly what I had in mind though.
I use Olympus ImageKnife OCX, which is fairly fast. Whether its fast enought for your app or not, only testing will tell. You should be able to download a demo at www.vbxtras.com

It will also do an outstanding job of resizing your images.
ChrisKAuthor Commented:
That link didn't work...and when I found the program you listed, it didn't have much documentation so I just gave up with it.  I discovered I do have software for windows that will encode mpegs....ulead mediastudio pro 5.  This helped a little, but it's still terribly slow on a P90 and will actually lock it up.
u can use imageman control to solve your problems.

u can pick up demo copy of imageman from www.datadynamics.com

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

Thank you,
Moderator @ Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.