C# – Poor image quality in ListView

cimagelistviewwinforms

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 (16×16). 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?

Best Answer

Try this line of code.

ImageList1.ColorDepth = ColorDepth.Depth16Bit;