2010-10-24 58 views
1

我正在使用Flex中的視頻。我希望能夠在特定時間暫停視頻並將顯示的幀複製爲圖像,並將其保存到數據庫中。我想知道是否有人知道我如何從暫停的視頻中複製單個幀? 感謝 --MattFlex - 複製視頻中的單幀

回答

1

假設您的視頻被稱爲 '夾'

var frameGrab:BitmapData = new BitmapData(clip.width, clip.height, false, 0x000000); 
frameGrab.draw(clip); // < the .draw() method will copy the frame from your video. 

// Add to the stage... 
var frame:Bitmap = new Bitmap(frameGrab); 
addChild(frame);