开发者

Android bitmap creation by View.getDrawingCache() on SurfaceView?

开发者 https://www.devze.com 2023-04-10 09:45 出处:网络
It appears that y开发者_如何转开发ou can create a bitmap from what is showing on the screen via View.getDrawingCache() once View.setDrawingCacheEnabled() is set to true.But it does not seems to work f

It appears that y开发者_如何转开发ou can create a bitmap from what is showing on the screen via View.getDrawingCache() once View.setDrawingCacheEnabled() is set to true. But it does not seems to work for the SurfaceView(It returns black where the surface view is placed). Is there a way to do it?


https://groups.google.com/forum/?fromgroups#!topic/android-platform/xHIActZZ9PA

Sorry, by its nature a SurfaceView does not draw in the normal view hierarchy update system, so it won't be drawn in that.

0

精彩评论

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

关注公众号