将视频帧捕获到位图数据(额外-将位图添加到PV3D材质)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将视频帧捕获到位图数据(额外-将位图添加到PV3D材质)相关的知识,希望对你有一定的参考价值。

Easy little script to grab the current frame's BitmapData from a Video()
  1. // Grab the Frame from the Video()
  2. _vidBitmapHolder = new BitmapData(_screenWidth, _screenHeight, false, 0x000000);
  3. _vidBitmapHolder.draw(videoFile); // draw the Video() Object
  4.  
  5. // Extra - Turn it into a BitmapMaterial for Papervision3D
  6. _tempVideoScreen = new BitmapMaterial(_vidBitmapHolder, false); // Create the BitmapMaterial

以上是关于将视频帧捕获到位图数据(额外-将位图添加到PV3D材质)的主要内容,如果未能解决你的问题,请参考以下文章