【问题标题】:Flex - Copying a Single frame from a VideoFlex - 从视频中复制单帧
【发布时间】:2011-04-29 20:13:58
【问题描述】:

我正在使用 Flex 中的视频。我希望能够在某个点暂停视频并将显示的帧复制为图像,并将其保存到数据库中。我想知道是否有人知道我如何从暂停的视频中复制单帧? 谢谢 --马特

【问题讨论】:

    标签: apache-flex video copy png frame


    【解决方案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);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-27
      • 2012-01-15
      • 2018-01-05
      • 2011-01-18
      • 1970-01-01
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      相关资源
      最近更新 更多