I need to be able to capture an image of a
GLSurfaceView at certain moment in time. I have the following code:
relative.setDrawingCacheEnabled(true); screenshot = Bitmap.createBitmap(relative.getDrawingCache()); relative.setDrawingCacheEnabled(false); Log.v(TAG, "Screenshot height: " + screenshot.getHeight()); image.setImageBitmap(screenshot);
GLSurfaceView is contained within a
RelativeLayout, but I have also tries it straight using the
GLSurfaceView to try and capture the image. With this I think the screen captures a transparent image, i.e. nothing there. Any help will be appreciated.