本帖最后由 envan 于 2010-12-08 23:22:38 编辑

解决方案 »

  1.   

    http://topic.csdn.net/u/20090207/17/96b22acf-92fd-456e-946c-c7801145f41c.html
      

  2.   

    我上图吧,图片是个listView图1
    图2
    把图1样式改成图2样式
      

  3.   

    思路:获取 imagelist 中的每个图片,画上边框,保存并替换原索引图片
    for (int i = 0; i < this.imageList1.Images.Count; i++)
    {
        Image img = this.imageList1.Images[i];
        using (Graphics g = Graphics.FromImage(img))
        {
            using (Pen p = new Pen(Color.DarkBlue, 1f))
            {
                g.DrawRectangle(Pens.Black,
                    new Rectangle(0, 0, img.Width - 1, img.Height - 1));
                g.Save();
            }
        }
        this.imageList1.Images[i] = img;
    }this.listView1.LargeImageList = this.imageList1;for (int i = 0; i < this.imageList1.Images.Count; i++)
    {
        this.listView1.Items.Add(
            string.Format("Item {0}", i), i);
    }
      

  4.   

    麻烦问你一下 你那个listview显示图片 是如何让它显示出来的啊?