开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜