How can I take a screenshot of a video, in android

前端 未结 3 790
南旧
南旧 2020-12-30 17:47

I have a video playing, and at some point, i need to pause the video, take a capture, and use then that image, to modify it, in a paint activity. The problem is that if, i t

3条回答
  •  孤城傲影
    2020-12-30 18:18

    Try this Link ..

    Hope it may help you

    Screen capture

    Bitmap saveBitmap = Bitmap.createBitmap(imageFrame.getWidth(), 
     imageFrame.getHeight(), Bitmap.Config.ARGB_8888);
    Canvas c = new Canvas(saveBitmap);
    imageFrame.draw(c);
    

    For more info try this link

    & this link

提交回复
热议问题