Solved

how to customize image size of ImageList

Posted on 2011-02-21
4
326 Views
Last Modified: 2012-05-11
how to customize image size of each image in  ImageList. By doing it in loop for each image the imageList become reset and the images get vanished. Any idea how to manage it. Without costomizing the images are distorted in the listview. I want Windows like thumbnails of images.
0
Comment
Question by:sigmatec_pk
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:John Claes
ID: 34941879
You can use the property upon your ImageList . ImageSize
This must be a Size Object and must be set before adding the Images.

Source + Info
http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist.imagesize.aspx


Regards
Poor beggar
0
 

Author Comment

by:sigmatec_pk
ID: 34941983
thanks for reply.

Infact i want my images of diffenent sizes dont strech. I want Windows explorer -like thumbnail view. Any help??

I tried this
http://www.pcreview.co.uk/forums/windows-like-thumbnails-listview-t1935383.html

but didnt get it properly.
0
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 34942100
Looking at the link provided :
It seems a very clear and usefull page to get it done.
where did it go wrong?


What they do in a short way

Get images
Run using For by all and use their method "preserveAspectRatio" to get ratioFree images
these images are set into the ImageList.
0
 

Author Closing Comment

by:sigmatec_pk
ID: 35253881
Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question