刀
刀剑如梦
Unregistered / Unconfirmed
GUEST, unregistred user!
抓取单帧图片并保存:
procedure TFlashPlayFileFrm.CopySingleFrame
begin
FlashPlayFileFrm.ShockwaveFlash.Stop
CopyBitMap := TBitmap.Create
try
CopyBitMap.Width := FlashPlayFileFrm.ShockwaveFlash.Width
CopyBitMap.Height := FlashPlayFileFrm.ShockwaveFlash.Height
FlashPlayFileFrm.ShockwaveFlash.PaintTo(CopyBitMap.Canvas.Handle,0,0)
if SavePictureDialog.Execute then
CopyBitMap.SaveToFile(SavePictureDialog.FileName+'.bmp')
finally
CopyBitMap.Free
end
end;
procedure TFlashPlayFileFrm.CopySingleFrame
begin
FlashPlayFileFrm.ShockwaveFlash.Stop
CopyBitMap := TBitmap.Create
try
CopyBitMap.Width := FlashPlayFileFrm.ShockwaveFlash.Width
CopyBitMap.Height := FlashPlayFileFrm.ShockwaveFlash.Height
FlashPlayFileFrm.ShockwaveFlash.PaintTo(CopyBitMap.Canvas.Handle,0,0)
if SavePictureDialog.Execute then
CopyBitMap.SaveToFile(SavePictureDialog.FileName+'.bmp')
finally
CopyBitMap.Free
end
end;