有两个小问题问各位:
1.在C# winform中有什么控件能显示像下面图这样的效果?
2.在C# winform中显示USB摄像头视频,但如何把这个视频保存成视频文件?比如保存成avi视频文件。谢谢

解决方案 »

  1.   

    图显示的就是一个横向的List,显示一张一张的图片
      

  2.   

    使用ListView, 处理ListView.DrawItem事件来绘制图。OwnerDraw设置为true
      

  3.   

    这是MSDN的例程。
    它是在选中的情况下,填充矩形,绘制选中边框。你换成你的绘图代码就可以。。要注意处理不同的情况。。
    private void listView1_DrawItem(object sender,
        DrawListViewItemEventArgs e)
    {
        if ((e.State & ListViewItemStates.Selected) != 0)
        {
            // Draw the background and focus rectangle for a selected item.
            e.Graphics.FillRectangle(Brushes.Maroon, e.Bounds);
            e.DrawFocusRectangle();
        }
        else
        {
            // Draw the background for an unselected item.
            using (LinearGradientBrush brush =
                new LinearGradientBrush(e.Bounds, Color.Orange,
                Color.Maroon, LinearGradientMode.Horizontal))
            {
                e.Graphics.FillRectangle(brush, e.Bounds);
            }
        }    // Draw the item text for views other than the Details view.
        if (listView1.View != View.Details)
        {
            e.DrawText();
        }
    }
      

  4.   

    你看到图?
    你换台电脑或删除C:/imgList.bmp 试一下