-1

目前,我保存到路径的所有缩略图都来自我的桌面,这是我的代码

// browse and add thumbnail from computer
  private PictureBox GetThumbnailPictureBox(string path, int id)

        PictureBox pic = new PictureBox();
        pic.Image = Image.FromFile(path);

        pic.SizeMode = PictureBoxSizeMode.StretchImage;
        pic.Dock = DockStyle.Fill;

        pic.Tag = id;
        pic.Click += new EventHandler(OnClickThumbnail);

        return pic;
    }

我应该怎么做才能提取视频帧,这样我就不需要手动保存图像了?

4

1 回答 1

0

我建议使用Image.GetThumbnailImage. 请参阅http://msdn.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx

于 2013-07-08T01:46:54.270 回答