I've rewritten this question a half dozen times and each time it makes less sense. In a nutshell, I want to populate a listview with large icons representing image files but I can't get them to come out unstretched. They are always stretched along the x or y axis because the aspect ratios vary. Does anyone know how to create a thumbnail to go into an imageList so that the thumbnail is padded in either direction to prevent stretching?
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Recommended Answers
Jump to PostI don't know ANYTHING about .NET and I don't even know what listview is. But, if this is a web application that is outputting HTML, you only need to specify the dimensions for height or width and the other will be calculated to the correct aspect ratio. Probably of no …
Jump to PostMaybe have a look at the Stretch property of your images. Click Here
Jump to PostPerhaps you need to manually free/dispose your bitmaps after use, I think they are unmanaged resources.
All 10 Replies
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
ddanbe
2,724
Professional Procrastinator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.