I'm populating a ListView with items and add images from an ImageList (in the designer). The images, however, are displayed in very poor quality, even though I've set the image size in the ImageList to their original size (16x16). Have a look:
Terrible image quality http://balazsbotond.hu/downloads/listview-icons.png
The original images are beautiful, sharp PNG icons. What can I do?
Try this line of code.
ImageList1.ColorDepth = ColorDepth.Depth16Bit;
change the colordepth of your imagesList that you're using for the listview and try a higher colorDepth depending on the PNGs (like Depth32Bit) and you'll see the diffrence .
Well, this was pretty easy. Just don't change the image size of the ImageList after adding the images :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With