目前,我保存到路径的所有缩略图都来自我的桌面,这是我的代码
// 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;
}
我应该怎么做才能提取视频帧,这样我就不需要手动保存图像了?