How to convert all content in a scrollview to a bitmap?

后端 未结 5 1569
傲寒
傲寒 2020-12-05 05:44

I use below code to convert, but it seems can only get the content in the display screen and can not get the content not in the display screen.

Is there a way to ge

5条回答
  •  醉酒成梦
    2020-12-05 06:14

    The issue here is that the only actual pixel content that ever exists is that which is visible on the display screen. Android and other mobile platforms are very careful about memory use and one of the ways a scrolling view can maintain performance is to not draw anything that is offscreen. So there is no "full" bitmap anywhere -- the memory containing the content that moves offscreen is recycled.

提交回复
热议问题