Take camera screenshot while recording - Like in Galaxy S3?

前端 未结 2 1741
臣服心动
臣服心动 2021-01-14 13:31

Im developing a camera app which uses SurfaceView for display.

I\'m able to take screenshot of the SurfaceView (and save it as a bitmap)
with getDrawingCache() (

2条回答
  •  不知归路
    2021-01-14 13:36

    No cache is maintained for the surfaceview. That is why you are not able get the cached bitmap. Actually when any view is render and its cache is turned on the view bitmap is render no mathematical calculation is done by system for drawing to improve the efficiency of rendering of view.

提交回复
热议问题