Windows Develop Bookmark and Share   
 index > Windows Forms General > Able to use ImageList with different size?
 

Able to use ImageList with different size?

ImageList control support to add multi images but I don't know it be able to add images with different sizes that don't cause to effect to image quality.

Because when I add a image with size (16, 16) to a imagelist with size (13, 16), this image is scaled.

Thanks.
  • Edited byLe Vo Quang Monday, September 28, 2009 3:04 AM
  • Moved byHarry ZhuMSFTWednesday, September 30, 2009 4:27 AMrelating to imagelist control (From:Visual C# General)
  •  
Le Vo Quang  Monday, September 28, 2009 2:47 AM
You can add image with different size to imagelist but imagelist have to resize them to one size. Either 16X16or 24 X24 or 32x32

kaymaf
I hope this helps, if that is what you want, just mark it as answer so that we can move on
kaymaf  Monday, September 28, 2009 3:02 AM
You can add image with different size to imagelist but imagelist have to resize them to one size. Either 16X16or 24 X24 or 32x32

kaymaf
I hope this helps, if that is what you want, just mark it as answer so that we can move on
kaymaf  Monday, September 28, 2009 3:02 AM

As @Kaymaf said, iamgeList will resize the image. Change the size by the ImageList.ImageSize property. You can use ArrayList instead, then convert it to image type. This will not change the image size.

 

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Sunday, October 04, 2009 7:17 AM

You can use google to search for other answers

Custom Search

More Threads

• Help with putting Image on ReportViewer from an object.
• How to Display Image data
• position in the richtextbox, SOS
• Get focus highlight on DateTimePicker using CheckBox
• Why ComboBox.SelectedValue does not work before ParentChanged event?
• Flashing forms: controls being updated?
• DataRow Problem?
• OpenFileDialog and Static Variables
• Open Child Window ONCE
• Code Generation minor error