Big size pictures in pictuerbox is slow

  • Thread starter Thread starter alekatz
  • Start date Start date
A

alekatz

Hi everybody,
I have a listbox with movie names, each time a movie is selected, an
image of the dvd cover is showed up in a picturebox.
The problem I get is that while navigating through the listbox, you get
a delay everytime you select another movie.
I would like to avoid this delay time. The size of the images go from
400k to a maximum of 1.3Mb.

Thank you very much,
Alejandro Katz
 
Alejandro,

For this purpose are thumbnails. If your pictures are in a database (or the
reference to that is in the database), than you can create an extra field
for that.

I hope this helps so far.

Cor
 
Hi,
The problem is I need to show the dvd cover images in a mid size,
thumbnails, are very little for my application.
I know that maybe I could work with the images to lower them in
resolution and compress them better, but as they are a lot, I was
looking for a way to show the images with a better performance.
As I described, my problem is that the picturebox takes to much
resources to load every image, so while you are navigating trough the
listbox, you get like a halt in every selection, avoiding the user to
navigate up and down with speed.

Any advice will be greatly appreciated,

Alejandro Katz
 
Alejandro,

You sound like somebody who has a family of 12 kids and want to go with his
wife and all his kids on holiday, however he has only a Fiat 500.

http://storm.tocmp.com/fiat500c1951.htm

I think it is than a holiday with only his wife, or a holiday near his
house.

It is or speed and show thumbnails or no speed and show the whole image.

However, you can set yourself how big a thumbnail has to be.

http://msdn.microsoft.com/library/d...emdrawingimageclassgetthumbnailimagetopic.asp

I hope this helps,

Cor
 
Hi Cor,
I've got a good equipment, PIV ,512MB.
What is the real benefit of using the thumbnail ?
What if a use an image array, and put all my images in memory, would
that be a memory hog ?.
Thanks for your replay,

Alejandro
 
Alejandro,

The way this is forever done is showing thumbnail buttons and on the click
on that showing the original. Maybe will this in future change however at
the moment this is in my opinion the standard method.

I don't know another solution.

Cor
 
Hi Cor,
I've got a good equipment, PIV ,512MB.
What is the real benefit of using the thumbnail ?
What if a use an image array, and put all my images in memory, would
that be a memory hog ?.
Thanks for your replay,

Alejandro

The real benefit of using thumbnails is that you're not shifting a
shitload of data like you are if you're using full size images. Pushing
around alot of data requires time and that is what's making your app
slow. Storing alot of covers in an array would be a memory hog IMO.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top