Android SurfaceView and returning a bitmap containing all draw calls
Android SurfaceView and returning a bitmap containing all draw calls
I’m working with a SurfaceView so I can create a separate thread just for drawing. My problem is how to obtain a bitmap of the current pixels on the screen for which I draw to the canvas. Here’s some code for a basic overview:
class SurfaceRenderView extends SurfaceView implements Runnable { SurfaceHolder holder; Thread thread; Canvas canvas; public SurfaceRenderView(Context context) {…
View On WordPress












