What is the least resource intensive .NET Winform control for displaying a large number of static images?

If I need to display a large number of static images on .NET Winform app, what .NET Control would use the least resources (memory, etc.)?  Perhaps 20 or 30 small images on a singe form.  They are static images that won't change, don't need to be loaded from a database or file.  They don't need to raise any events, just look pretty.  I was planning to use pictureboxes but they seem to be resource heavy.  I was also entertaining using a no text Label and assign an image.  Any thoughts?
eeyoAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
I'd just use the picturebox.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
If you talked about 20 - 30 thousand images then I could understand your worries.  (Or is each image 100,000 x 100,000 in size).
0
 
eeyoAuthor Commented:
Each one will be about 100x200 or so, so not too large. I just seemed to remember that picturebox was a little resource heavy.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
AndyAinscowFreelance programmer / ConsultantCommented:
For what you are doing absolutely nothing to worry about.
0
 
eeyoAuthor Commented:
For future reference, if I did have lots of photos, what would be the best Winform control to reduce resource usage?
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
You can still compress/optimise images, I would
https://tinyjpg.com/
0
 
eeyoAuthor Commented:
>>You can still compress/optimise images
Good point
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
jpg files are usually pretty much compressed.  (Also doesn't make any difference AFAIK when actually loading/displaying in picture box).
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
Having a file as JPG does not guarantee that it is optimized. Compressing/optimization can reduce JPG up to 90%

As for it not contributing to loading, of course, it does. The only argument is if it would make a significant difference in loading 30 images
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
I'm puzzled.
If you use eg. a bmp file for the image.  Agreed compressing it into a zip file will save a lot of space.  However the picturebox can't use the zip file can it?  I thought it would first have to be unzipped to the original bmp file before the picturebox can display it.  If I am correct then why is it more efficient to display a bmp file after decompressing it compared to the identical original bmp file?
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
You are confusing compression to a ZIP with image optimisation/compression.
Image optimisation/compression you end up with a visually identical file with the same file type, only smaller
Compressed.png
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
OK, thanks for explaining.
0
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.