1、你先画前50秒的picture1
2、你把picture1按照相应的压缩比例赋值到picture2
【此处做一个函数,每次调用完成比例压缩,picture2不用显示,作为临时数据,本例按照picture1压缩1/6】
'Picture1 减少1/6压缩到Picture2
Picture2.PaintPicture Picture1.Image, 0, 0, Picture1.ScaleWidth*5/6, Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight
'清除Picture2后面1/6图像,防止重复复制
Picture2.Line (Picture1.ScaleWidth *5/6, 0)-(Picture1.ScaleWidth, Picture1.ScaleHeight), vbWhite, BF
'将Picture2的图像拷贝到Picture1中,其中前5/6是压缩后数据,后1/6是空白数据
Picture1.PaintPicture Picture2.Image, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight
3、你在picture1后面1/6位置划线,画完10s在调用压缩函数