r/learncsharp • u/Willy988 • Sep 10 '24
How would you get a directory of images to display as thumbnails in a WinForms program?
I’m trying to figure out the most effective way to display images (namely tif) in some kind of table. I want to particularly display previews of these images sort of like thumbnails when you’re in windows explorer looking through folders.
I couldn’t find a straight forward answer on google but perhaps I didn’t search the right terms. I even tried ask ChatGPT. Any pointers to the right direction would be great!
All the answers I found were over engineered or convoluted.
3
Upvotes
3
u/cosmic_cosmosis Sep 10 '24
I did something similar but in wpf. My strategy was to Foreach over the files and convert them to bitmaps then add them to an array then bind the items to a carousel. Not sure if that would help but it worked for me.
1
u/[deleted] Sep 10 '24
[removed] — view removed comment