Grabbing bitmap from Webview on android?

40 views
Skip to first unread message

Danila Ulyanov

unread,
Jan 6, 2025, 5:24:05 AMJan 6
to android-w...@chromium.org
Hello guys,
 
Not sure if this is right place to ask, but I am in need for a way to grab currently rendered image from webview in general case (e.g. with WebGL canvas on page).
Is it possible with standard android webview, or do I have to build custom chrome content shell for that?
 
Thanks in advance,
Danila Ulyanov

Bo Liu

unread,
Jan 6, 2025, 3:38:32 PMJan 6
to Danila Ulyanov, android-w...@chromium.org
You can adapt code which should work for webview, though I'm not aware of anyone actually trying it. It does require API level 29 though:

Do report back if it ends up working or not.

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/1868171735042829%40mail.yandex.ru.

Danila Ulyanov

unread,
Jan 8, 2025, 7:34:06 AMJan 8
to Bo Liu, android-w...@chromium.org
Hi, thanks a lot for replying!
 
I'll check if it works soon.
 
Best regards,
Danila Ulyanov
Reply all
Reply to author
Forward
0 new messages