开发者

High-performance bitmap drawing from Webview

开发者 https://www.devze.com 2023-03-30 22:32 出处:网络
I need to take the bitmap of a web page presented in a WebView, and draw it somewhere else. I need to do it in high performance - several

I need to take the bitmap of a web page presented in a WebView, and draw it somewhere else. I need to do it in high performance - several times in a second. Anyone has an idea what's the best way of ach开发者_C百科ieving that? I know how to get the bitmap using webview.buildDrawingCache and canvas.drawBitmap, but that seem to be a good solution for a single snapshot only. Also tried overriding onNewPicture, was not enough either. Getting the bitmap is a must for me, I cannot simply re-scale the webview.

Thanks, yakobom

0

精彩评论

暂无评论...
验证码 换一张
取 消