Return to Snippet

Revision: 13054
at April 6, 2009 16:59 by allnatural

Initial Code
// Grab the Frame from the Video()
_vidBitmapHolder = new BitmapData(_screenWidth, _screenHeight, false, 0x000000);
_vidBitmapHolder.draw(videoFile); // draw the Video() Object

// Extra - Turn it into a BitmapMaterial for Papervision3D
_tempVideoScreen = new BitmapMaterial(_vidBitmapHolder, false); // Create the BitmapMaterial

Initial URL

Initial Description
Easy little script to grab the current frame's BitmapData from a Video()

Initial Title
Capture Video Frame To BitmapData (Extra - Add Bitmap to PV3D Material)

Initial Tags

Initial Language
ActionScript 3