ImageList图像质量差

时间:2014-06-01 19:09:32

标签: c# imagelist

我的自定义TabControl中显示的ImageList中的图像质量很差:

http://i.imgur.com/CsQMzAa.png

原稿图像质量(检查右图像的差异):

http://i.imgur.com/B5LTHoH.png

原件的尺寸为24x24。 我添加了我的ImageList,将Size参数更改为24x24,将ColorDepth设置为32(J'aiessayéavec8,16 ...)并在添加我的图像后。

在我的自定义TabControl中显示图像的代码:

// Icon
        if (ImageList != null) {
            if (tp.ImageIndex != -1) {
                Image i = ImageList.Images[tp.ImageIndex];
                Point p = new Point(12, r.Y + ((ItemSize.Width / 2) - (i.Height / 2)));
                e.Graphics.DrawImage(i, p);
            }
        }

0 个答案:

没有答案