Search code examples
c#.netwinformscustom-controlsimagelist

Resolution of ImageList Icons are not clear in TabControl


Resolution for ImageList which is being used for TabControl Icons if the TabControl Draw mode is OwnerDrawFixed is not clear and causing some issues with the different backgrounds. If the background of the Rectangle container is having SolidBrush, The Image will be OK. Otherwise it will be disturbed.

Is there any good way to draw the image in High resolution?


Solution

  • When adding images to ImageList consider:

    • Set ColorDepth property to Depth32Bit for png images.
    • Set ImageSize property to your original images size, in your case 24,24

    Then add images to your image list.

    Changing these properties after adding images will result in low quality images.