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
http://www.destroyyourcomputer.com

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
video

Initial Language
ActionScript 3